IntelliJ IDEA 11.0 Web Help

File | Settings | Inspections

Ctrl+Alt+SMeta Comma

settings

IntelliJ IDEA | Preferences | Inspections

Ctrl+Alt+SMeta Comma

settings

Use this dialog box to configure code inspections and inspection profiles. The page is divided into the following areas:

General profiles options

Item Description
Profile From this drop-down list, select the name of the profile to configure.
Add Click this button to add a new profile. The profile is created based on the default profile.
Copy Click this button to create a new profile based on the current profile.
Delete Click this button to delete the selected profile.
Import Click this button to import the profile from an xml file.
Export Click this button to export the selected profile as an xml file.
Activate Click this button to activate the selected profile. The active profile is applied to the project files, thus if you need to switch to another profile, you need to activate it. If this button is disabled, that means the selected profile is active now, or defined as IDE-level profile.

Note

If you modify inactive profile and then click OK, or Apply, your changes are saved, but profile does not become active.

Share profile Select this check box to make the selected profile available for your team, i.e to make it the project-level profile. If you create IDE-level profile for your own purposes, clear this check box.

Current profile toolbar

Item Shortcut Description
expandAll.png Ctrl+Add Command Add or Ctrl+Equals Command Equals Click this button to have all inspection nodes expanded.
collapseAll Ctrl+Subtract Command Subtract or Ctrl+Minus Command Minus Click this button to have all inspection nodes collapsed.
resetProfileToDefault2 Ctrl+RCommand R Click this button to abandon the modifications and have the current profile reset to defaults.
resetProfile Click this button to have all the check boxes of the profile cleared and thus disable all the profile inspections.
lock Click this button to lock the current profile and prevent any changes to it if IntelliJ IDEA is updated and new inspections appear. You can only change such profile manually.

Scopes toolbar

Item Shortcut Description
add InsertInsert Click this button to specify the scope for the selected inspection.

Note

If an inspection is enabled and no scope is specified for it, the inspection is applied to all project sources.

delete DeleteDelete Click this button to delete the selected scope for the current inspection.
arrowUp arrowDown Use these buttons to arrange the order of scopes for the selected inspection.

Search area

Item Description
find1 Use this text box to search through the list of inspections. As you type a search string, the matching inspections are highlighted. To finalize the search, press EnterEnter. The used search strings are memorized in the history list.
clear Click this button to clear the search history.

Inspection options

Item Description
Description This read-only field shows the description of the selected inspection.
Options Use the controls in this area to configure the inspection severity, and the other options, if they are available.
  • Severity - from this drop-down list, select the desired severity to assign to the current inspection. The default options are:
    • As typo
    • As server problem
    • As info
    • As warning
    • As error
  • browseButton - click this button to open the Severities Editor dialog box, where you can change the color scheme of the selected severity, add and delete severity levels, and change their priority by re-arranging them in the list.
  • Additional options for individual inspections.

Note

This area is only available when the check box next to the desired inspection is selected.

See Also

Concepts:

Procedures:

Reference:

Web Resources: