History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEABKL-4328
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
Assignee: Anna Kozlova
Reporter: AlexL
Votes: 2
Watchers: 4
Available Workflow Actions

Mark as Stalled
Operations

If you were logged in you would be able to see more operations.
IDEA: Backlog

IDE Settings - Errors - Quickfix Available filter and/or Quickfix icon decoration next to inspection name and/or Quickfix note in description.

Created: 19 Jul 05 04:59   Updated: 20 Sep 07 04:19
Component/s: Editor. Error Highlighting
Affects Version/s: None
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: None
Image Attachments:

1. 7291_Errors_New_In_7_filter.png
(18 kb)

2. 7291_Keymap_Filter_dialog.png
(11 kb)
Environment: Windows XP SP2

Build: 3,408
Severity: High


 Description  « Hide
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.



 All   Comments   Work Log   Change History      Sort Order:
AlexL - 20 Sep 07 04:17
Update

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:

-----------------------
[X] New in 7

Quickfix Type
------------------
(*) All
( ) Automated Quickfixes
( ) Interactive Quickfixes
-----------------------

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.