How to Run a Single Inspection in IDEA X?

Konstantin Bulenkov

To run a single inspection in previous versions of IntelliJ IDEA you had to create a dedicated inspection profile for that or use “Run inspection on…” from inspection’s quick fix list. In IntelliJ IDEA X you can find and run inspection by its name on any scope without creating an inspection profile. Use Run Inspection by Name (Ctrl+Alt+Shift+I) action anywhere to choose a desired inspection from hundreds of available,

then select a scope to run inspection on,

and get results.

This action is available since version 98.402 in Main Menu-> Analyze->Run Inspection by Name.

Comments below can no longer be edited.

3 Responses to How to Run a Single Inspection in IDEA X?

  1. Ara Minosian says:

    November 20, 2010

    It would be useful to switch off one inspection for a file and not for hall project.

  2. Stephen Friedrich says:

    November 20, 2010

    Very nice, indeed I have often created an inspection profile just to do this.

    One little quirk: On windows the selected inspection in the dropdown list is impossible to read (black text on dark blue background).

    Windows Vista, JD 6, “Alloy. IDEA Theme”

  3. Konstantin Bulenkov says:

    November 21, 2010

    @Ara You can do it without a problem
    It works not only in Java files, but in others too.

    @Stephen Thanks to noticed this. Seems this problem is not in this list only. Other lists have the same issue. Will try to fix it soon.


Subscribe for updates