How to disable an inspection (a shortcut to the settings)
Situation
If you see a warning or an error in the editor and want to disable the corresponding inspection or adjust its settings, there is a quick way to open the inspection settings directly from the editor.
Question
How to disable/configure an inspection directly in the editor?
Answer
- Put the caret on the highlighted symbol.
- Press Alt+Enter.
- In the popup that appears, locate the inspection name and press the right arrow key, or click the three dots (the icon on the right).
- In the submenu select "Edit inspection profile" to open the settings, or "Disable inspection" if you want to turn it off completely.
The disabled inspection can always be re-enabled in Settings | Editor | Inspections.
Please sign in to leave a comment.