问题
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.
回答1:
Just in case somebody ends up looking for an answer here. With lombok plugin starting with v0.8.6 it is possible.
回答2:
Lombok comes with a 'delombok' feature that you an use as follows:
java -jar lombok.jar delombok -p MyJavaFile.java
    来源:https://stackoverflow.com/questions/36526286/view-lombok-generated-code-in-intellij-idea