View lombok generated code in IntelliJ IDEA

2019-04-03 07:57发布

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.

2条回答
看我几分像从前
2楼-- · 2019-04-03 08:37

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.

查看更多
做个烂人
3楼-- · 2019-04-03 08:44

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

java -jar lombok.jar delombok -p MyJavaFile.java
查看更多
登录 后发表回答