IntelliJ IDEA 11.0 Web Help

IntelliJ IDEA allows you to specify your own set of inspections for each module or project, or customize inspection profile for the whole IDE. You can create a profile with all necessary inspections specified and tie it to your project, or use the default one, which is also editable.

A project can be divided into several areas of inspections, or scopes, where different inspections should apply. Unlike Copyright, scopes are associated directly with inspections, without any scope-profile associations defined.

With IntelliJ IDEA, you can create, update, export, and remove profiles.

To add or update a profile, perform the following general steps:
To access the settings of a profile, do one of the following:
  • To create a new profile, click the Add button and specify the profile name. The created profile is a copy of the default one.

    Tip

    The newly created profile is an IDE-level profile. To make it available for your team, select the Share profile check box.

  • To import a profile from an xml file, click the Import button and specify the location of the profile.
  • To update an existing profile, select the desired profile from the Profiles drop-down list and change its settings, as necessary.
To adjust the profile settings
  1. Enable or disable the desired inspections.
  2. To apply an inspection to a restricted set of files, associate it with the corresponding scopes.

    Note

    By default, an enabled inspection applies to all the sources of the current project.

  3. To configure the level of alerts, specify the inspection severity using the Severity drop-down list.
  4. Change the other options, which can be different for various inspections. Note that the Options section is only enabled for enabled inspections.
  5. To make the profile active, click the Activate button.
  6. Apply the changes and close the dialog.
To export a profile as an XML file
  • Select the desired profile from the Profiles drop-down list and click the Export button.
To remove a profile
  • Select the desired profile from the Profiles drop-down list and click the Delete button.

See Also

Concepts:

Procedures:

Web Resources: