IntelliJ IDEA 12.1.0 Web Help

For some reasons you may decide to leave as is the parts of your code that are reported as problematic. In this case you can suppress certain inspections for this code in general or for a particular scope. This can be done from the Inspection tool window or "on-the-fly".

To suppress an inspection
  1. Select the desired inspection among inspections reported in the left pane of the Inspection tool window.
  2. Click the img button on the toolbar, or just right-click the selected inspection.
  3. On the submenu, choose the desired suppress action. For example:

    suppressInspectionFromToolWindow.png

To suppress inspection alerts on-the-fly
  1. Click Alt+EnterAlt+Enter, or click the light bulb icon to show the suggestion list.
  2. In the suggestion list, select the scope, where the alert will be suppressed:

    intentionActionSuppress

See Also

Concepts:

Procedures:

Reference:

Web Resources: