在IntelliJ IDEA中查看lombok生成的代码 [英] View lombok generated code in IntelliJ IDEA

查看:1278
本文介绍了在IntelliJ IDEA中查看lombok生成的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在IntelliJ中设置了lombok插件,我的代码构建正常。我可以在结构视图中看到lombok生成的方法。我想要的是实际看到源lombok为每个方法生成的一些方法。我意识到我可以删除该文件,但我想知道是否有某种方法我可以翻转一个开关来显示或隐藏lombok生成的代码。

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.

推荐答案

以防万一有人最终在这里寻找答案。使用以v0.8.6开头的lombok插件是可能的。

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

这篇关于在IntelliJ IDEA中查看lombok生成的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆