How to Run a Single Inspection in IDEA X?

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.

This entry was posted in Tips & Tricks and tagged , . Bookmark the permalink.

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

  1. Ara Minosian says:

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

  2. Stephen Friedrich says:

    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. @Ara You can do it without a problem http://img408.imageshack.us/img408/8514/ss20101121140315.png
    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.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">