hide Intellij Idea yellow light bulb

自古美人都是妖i 提交于 2019-11-29 05:00:41

问题


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.

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.

I know that I can make refactoring using alt+enter, why remind me constantly about it?


回答1:


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" />

The file is located at:

  • On OS X: ~/Library/Preferences/<PRODUCT>/options/editor.xml
  • On Windows: %HOMEPATH%\.<PRODUCT>\config\options\editor.xml
  • On Linux: ~/.<PRODUCT>/config/options/editor.xml

where <PRODUCT> is e.g. IdeaIC13, IntelliJIdea13, PyCharm30 or AndroidStudio.

This will prevent the lightbulb from ever being shown. This solution came up in the discussion of an issue about this problem.




回答2:


The option is now available in the Settings! Rejoice!

Editor > General > Appearance
[ ] Show intention bulb


来源:https://stackoverflow.com/questions/16712626/hide-intellij-idea-yellow-light-bulb

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!