IntelliJ IDEA 11.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 hectorBack button on the toolbar, or just right-click the selected inspection.
  3. On the submenu, choose the desired suppress action. For example:

    suppressInspectionFromToolWindow

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

Tip

To change the inspection settings, select Edit inspection profile settings on the context menu and modify the settings in the Inspections dialog box, that opens.

See Also

Concepts:

Procedures:

Reference:

Web Resources: