View lombok generated code in IntelliJ IDEA

Intellij IdeaLombokIntellij Lombok-Plugin

Intellij Idea Problem Overview


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.

Intellij Idea Solutions


Solution 1 - Intellij Idea

enter image description here

Just in case somebody ends up looking for an answer here. With lombok plugin starting with v0.8.6 it is possible.

Solution 2 - Intellij Idea

Lombok comes with a 'delombok' feature that you an use as follows:

java -jar lombok.jar delombok -p MyJavaFile.java

Solution 3 - Intellij Idea

Find generated class in folder target/././classname.class and open it in IntelliJ IDEA.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionMike SweeneyView Question on Stackoverflow
Solution 1 - Intellij IdeajjdView Answer on Stackoverflow
Solution 2 - Intellij IdeaRajesh KolappakamView Answer on Stackoverflow
Solution 3 - Intellij IdeaVasily PudikovView Answer on Stackoverflow