IntelliJ disable code analysis (light bulb)

巧了我就是萌 提交于 2019-11-28 07:53:24

问题


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 already unchecked everything single feature in Project Settings -> Inspections.

I'm using IntelliJ 10.5 to edit ActionScript code.


回答1:


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.




回答2:


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




回答3:


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>



回答4:


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



来源:https://stackoverflow.com/questions/7111027/intellij-disable-code-analysis-light-bulb

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