Search code examples
android-studiointellij-ideasyntax-highlightinghighlight

Disable suggestion/syntax highlighting in both Intellij Idea and Android studio


I wish to disable highlighting such as

  • "change var to val"
  • "can be inlined"

and the likes. How do I do that? (I don't want to disable error highlighting)

I tried disabling some "inspection" in the settings, but it didn't do what I wanted.


Solution

    1. Alt+Enter on the warning
    2. More actions
    3. Disable inspection, or "Suppress for file"

    enter image description here