隐藏Intellij Idea黄色灯泡 [英] hide Intellij Idea yellow light bulb
问题描述
有没有办法隐藏黄色灯泡,这极大地让我在每一行都显示出来。
我不想禁用任何检查。我只是想隐藏黄色灯泡。
Is there a way to hide yellow light bulb, which greatly annoys me showing on every line. I don't want to disable any inspections. I just want to hide yellow light bulb.
我正在尝试从eclipse(不是第一次)切换,这是让我非常恼火并阻止切换的事情之一。
I'm trying to switch from eclipse (not the first time) and this is one of the thing that annoys me greatly and prevent from switching.
我知道我可以使用alt + enter进行重构,为什么要经常提醒我呢?
I know that I can make refactoring using alt+enter, why remind me constantly about it?
推荐答案
有一个选项,但它没有在首选项对话框中公开。在 editor.xml
中的< component name =EditorSettings>
部分内添加或修改以下行文件并重新启动IntelliJ IDEA:
There is an option, but it's not exposed in the preferences dialog. Add or modify the following line inside the <component name="EditorSettings">
section in your editor.xml
file and restart IntelliJ IDEA:
<option name="SHOW_INTENTION_BULB" value="false" />
该文件位于:
- 在OS X上:
〜/ Library / Preferences /< PRODUCT> /options/editor.xml
- 在Windows上:
%HOMEPATH%\。< PRODUCT> \ config \options \ _editor.xml
- 开Linux:
〜/。< PRODUCT> /config/options/editor.xml
- On OS X:
~/Library/Preferences/<PRODUCT>/options/editor.xml
- On Windows:
%HOMEPATH%\.<PRODUCT>\config\options\editor.xml
- On Linux:
~/.<PRODUCT>/config/options/editor.xml
其中< PRODUCT>
是例如 IdeaIC13
, IntelliJIdea13
, PyCharm30
或 AndroidStudio
。
这样可以防止灯泡出现。该解决方案出现在有关此问题的问题的讨论中。
This will prevent the lightbulb from ever being shown. This solution came up in the discussion of an issue about this problem.
这篇关于隐藏Intellij Idea黄色灯泡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!