32

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?

user1194528
  • 395
  • 1
  • 4
  • 10
  • 1
    :( I have recently made the switch (successfully!) from Eclipse .. and the bulb had not annoyed me unitl I read this post :(. Also, related question : http://stackoverflow.com/questions/7111027/intellij-disable-code-analysis-light-bulb – Ashutosh Jindal May 24 '13 at 09:59
  • 1
    I discovered that there is an option to disable the lightbulb. And I do not agree with CrazyCoder's answer as I've been working with IntelliJ IDEA since version 9 and the behavior of the lightbulb icon still annoys me multiple times per day. Let this be the last day … – Feuermurmel Dec 16 '13 at 14:29

2 Answers2

36

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.

Feuermurmel
  • 9,490
  • 10
  • 60
  • 90
  • 4
    +1 Good find. I just started using intellij, and the bulb was an instant annoyance. On Windows, I found this file at `C:\Users\YOURNAME\.IdeaIC13\config\options\editor.xml` . Change the bulb option from "true" to "false". – icy Jan 30 '14 at 22:32
  • @icy Thanks! I've added the file location on Windows to the answer. – Feuermurmel Jan 31 '14 at 10:14
  • Thanks for that tidbit. The bulb is an annoyance as it is currently implemented since to select text you have to click multiple times to get around the bulb. – Mike Dec 08 '14 at 16:59
  • 2
    Thanks for saving WebStorm from an early death on my machine... awful UX decision. For those using WebStorm, the from the above Windows path is WebIde80. –  Jun 17 '15 at 14:05
  • What section of the XML file should this go? Should it be under the XmlEditorOptions component or at the top level? – SMBiggs Dec 11 '15 at 16:21
  • @ScottBiggs In section `EditorSettings`. I updated the answer. – Feuermurmel Dec 13 '15 at 19:31
  • FYI: This works as advertised for WebStorm 2016.2.4. – JDB Nov 03 '16 at 17:35
  • 1
    Thanks for freeing me from this annoyance. This also works for Android Studio. The file location is: `C:\Users\user-name\.AndroidStudio2.2\config\options\editor.xml`. – dazed Nov 22 '16 at 17:15
  • If you have version controlled settings you need to make this change in the repository rather than in the local file otherwise it gets removed every time you start up. – artran Dec 22 '16 at 12:03
10

The option is now available in the Settings! Rejoice!

Editor > General > Appearance
[ ] Show intention bulb

If you don't see the option there, type "bulb" in the search box within Settings and look through the results.

Ivaylo Novakov
  • 775
  • 6
  • 18
  • This is still valid in the current version (2023.1.3), in the same location too (Editor, General, Appearance). – Kaan Jun 20 '23 at 20:36