Re: Re: Features brainstorming

Tor Norbye <[email protected]> Mon, 02 Feb 2004 12:06:28 -0800
Newsgroups gmane.comp.java.netbeans.modules.tasklist.devel
Message-ID <[email protected]>
On Feb 2, 2004, at 11:52 AM, Jesse Glick wrote:
> FWIW I never use the "fix" feature; just want to see the problems. If 
> I see an unused variable, and F12 to the line where it is declared, I 
> can surely press Home - Home - Shift-Down - Delete faster than it 
> would take to open some suggestions window, read it, accept what it is 
> offering, and check that it did what it promised (even if it were 
> KB-accessible, which currently I think it is not). Even faster for 
> adding an import: F12 then Alt-Shift-I is all that is needed.

I find it a bit more useful for removing unused methods, since those 
aren't deleted as easily by hand (you could fold up, but would still 
have to remove both the code fold and the comment fold).

However, where it really helps is when I do "batch" operations:
- Scan a folder.
- The PMD checker sorts all the "unused imports" together - I may have 
200 of them.
- Click on the Fix button
- In the confirmation dialog, click on Fix All (or whatever the button 
is, can't remember). Voila, now they are ALL removed.

I find this type of editing most useful for copyright fixes and unused 
imports (I generally want to look at unused methods before removing 
them).

-- Tor