I have the lombok plugin setup in IntelliJ and my code builds fine. I can see the lombok generated methods in the structure view. What I want is some way to actually see the source lombok generates for each of the methods. I realize I can delombok the file but I'm wondering if there is some way I can flip a switch to show or hide the lombok generated code.
View lombok generated code in IntelliJ IDEA
Asked Answered
#29980633 –
Sweetandsour
Take a look at this answer. https://mcmap.net/q/219052/-intellij-idea-cannot-see-lombok-generated-code-duplicate –
Mineral
Not sure how that addresses the question. I was hoping to see the generated source inline in the source file. –
Knuth
did you find anything as of now? –
Behan
With the Lombok plugin (starting with v0.8.6), "Lombok" and "Delombok" menu items are available in the "Refactor" menu.
thanks jjd. what would be very helpful to know is that would re-Lomboking using the above plugin options, just revert the class to what it was...cause the Lomboking options all start with Default...I dont want to change the class from a bespoke Lombok to a default lombok...sorry I am a lombok newbie. –
Mosesmosey
Just look at the expanded menu right under the one shown, i.e.
Delombok
. That's what you're looking for. –
Rother Does not answer the question –
Novercal
Find generated class in folder target/././classname.class and open it in IntelliJ IDEA.
From Review: The question is about a solution for seeing the lombok generated code inline in the original source file in that project. –
Lacquer
Actually this is what I'm looking for. @Vasily Pudikov, you got my up vote. :) –
Cardinalate
Lombok comes with a 'delombok' feature that can be used as follows:
java -jar lombok.jar delombok -p MyJavaFile.java
Very aware of that as mentioned in the question. I'm looking for something in the IDE where I can flip a toggle or something and see the lombok generated code inline in the original source file in my project. –
Knuth
© 2022 - 2024 — McMap. All rights reserved.