Eclipse - 如何在警告时移除灯泡
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8896178/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Eclipse - how to remove light bulb on warnings
提问by Gal
Super quick question here that has been bugging me for a very long time - Is there any way to remove the light bulb that appears on the left side of the line when there is a warning in Eclipse (Specifically using Java IDE, if it matters).
这里的超级快速问题一直困扰着我很长时间 - 当 Eclipse 中出现警告时,有没有办法去除出现在行左侧的灯泡(特别是使用 Java IDE,如果重要的话) .
It is very annoying the way it hides breakpoints, and honestly - I can see the little squiggly yellow line just fine.
它隐藏断点的方式非常烦人,老实说 - 我可以很好地看到弯曲的小黄线。
Thanks.
谢谢。
回答by Reddy
Go to Windows > Preferences > General > Editors > Text Editors > Annotations
.
Select Warnings
option in the Annotation Types
list box, un-select Vertical Ruler
去Windows > Preferences > General > Editors > Text Editors > Annotations
。Warnings
在Annotation Types
列表框中选择选项,取消选择Vertical Ruler
回答by Oleksandr
回答by Jorgesys
This is another way to do this:
这是执行此操作的另一种方法:
Button right into your code -> Preferences...
-> Java
-> Editor
-> Disable the option: Light bult for quick assists
.
按钮直接进入您的代码 -> Preferences...
-> Java
-> Editor
-> 禁用选项:Light bult for quick assists
。
回答by Deva
This problem generally occurs when you have installed multiple plugins in your eclipse. I found the solution for that. Just Go to Windows > Preferences > General > Editors > Text Editors > Annotationsand then Select Warnings optionin the Annotation Types list box, un-select Vertical Ruler
这个问题一般出现在你的eclipse中安装了多个插件的时候。我找到了解决方案。只需转到Windows > Preferences > General > Editors > Text Editors > Annotations,然后在 Annotation Types 列表框中选择 Warnings 选项,取消选择 Vertical Ruler
回答by Frankline
Please try going to Window->Preferences menu. Then simply browse to Java->Errors/Warning panel. Expand the "Code Style" settings. Set the option you want to "ignore".
请尝试转到“窗口”->“首选项”菜单。然后只需浏览到 Java->Errors/Warning 面板。展开“代码样式”设置。设置要“忽略”的选项。
Is that what you are looking for?
这就是你要找的吗?