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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 17:35:01  来源:igfitidea点击:

Eclipse - how to remove light bulb on warnings

eclipse

提问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 Warningsoption in the Annotation Typeslist box, un-select Vertical Ruler

Windows > Preferences > General > Editors > Text Editors > AnnotationsWarningsAnnotation Types列表框中选择选项,取消选择Vertical Ruler

回答by Oleksandr

Window -> Preferences -> Java -> Editor
Uncheck Light bulb for quick assists

Window -> Preferences -> Java -> Editor
取消选中 Light bulb for quick assists

remove light bulb on warnings

在警告时取下灯泡

回答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?

这就是你要找的吗?