Would like to have an additional filter 'Quickfix
Available' which would only show inspections which have a
Quickfix. Or alternatively, you could put a Quickfix icon
next to each inspection name which supports a Quickfix.
Quickfixes are awesome, and you should give them greater
visibility.
Another simple change would be to add a note in the inspection description
if it supports quickfix, e.g.
Note: [quickfix icon] This inspection offers a quickfix to resolve the issue.
As of IDEA 7.0 EAP 7291, Bas has added the keyword "New in 7" to the inspection
description of all new inspections shipped with IDEA 7.0. A user can type "New
in 7" in the filter box on the Project Settings->Errors dialog, and you will
see only new inspections. Also, there is a toolbar button (lightning bolt)
which advertises this search capability. See screenshot.
Clarification
I want to see which inspections off a quickfix, because these are some of the
most interesting inspections. If Jetbrains adds a quicker way to run all
quickfixes in a profile (IDEADEV-17781), this would become even more important
because I could create a "Cleanup" profile containing such quickfixes.
Actually, there are two kinds of Quickfixes: Ones that are completely automated,
e.g. "add braces to if", "narrow scope of variable", "sort modifiers", etc. and
ones which invoke interactive commands e.g. "Rename variable", "Generify...".
In fact, I wouldn't even call the latter Quickfixes.. So I think a filter for
"Quickfix Available" should only show those inspections which have fully
automated, non-interactive fixes.
For the interactive fixes, I think there is a finite set, e.g. Generify.., Rename...
Is there that many interactive actions used as quickfixes?
Ideally, I would like each inspection with a quickfix to specify what kind of
fix it supports, e.g. "Quickfix" (this is only true non-interactive automated fixes),
"Fix with Generify...", "Fix with Rename...", etc.
Then I could search for those keywords. One thing I would like to do is to color
errors that are "Fix with Generify..." a different color because I have found that
it is important to Generify... a file before applying other fixes.
Possible Implementation
A complete solution encompassing the "New in 7" and "Automatic Quickfix Available"
is to copy the UI from the Keymap dialog. See attached picture. I would remove
the lighting bolt icon, and instead put a filter icon. The filter icon would popup
a little dialog with a few choices:
The advantage of the dialog, besides consistency with Keymap dialog, is that you could
choose both "New in 7" and "Automated Quickfix" to see only new automated quickfixes.