IntelliJ disable code analysis (light bulb)

后端 未结 4 1939
渐次进展
渐次进展 2020-12-20 20:08

Is there a way to disable code analysis (the light bulb) in IntelliJ? I really don\'t care about code improvement suggestions as I\'m viewing some third party code. I\'ve al

相关标签:
4条回答
  • 2020-12-20 20:24

    I believe you're looking for "Intentions", not "Inspections", though I don't know a way to turn them of globally.

    0 讨论(0)
  • 2020-12-20 20:28

    To disable inspections:

    Settings > Project Settings > Inspections

    Click the 'Reset to empty' icon (looks like an eraser)

    To disable intentions:

    Settings > IDE Settings > Intentions

    Uncheck all of the boxes here

    0 讨论(0)
  • 2020-12-20 20:30

    On the status bar, there is a little icon showing a man. If you click on it, you can change the inspection level: nothing, syntax, full analysis.

    0 讨论(0)
  • 2020-12-20 20:46

    I have concluded that it's not possible to completely disable Inspections in IntelliJ 10.5 (at least while editing ActionScript) possibly due to a bug.

    Follow-up: IntelliJ support is saying this may be a bug.

    Edit April 2017: Finally there is a workaround, in particular add:

    <option name="SHOW_INTENTION_BULB" value="false" />
    

    to IdeaIC2017.1/options/editor.xml. If there's no editor.xml then create a new one as such:

    <application>
      <component name="EditorSettings">
        <option name="SHOW_INTENTION_BULB" value="false" />
      </component>
    </application>
    
    0 讨论(0)
提交回复
热议问题