You can set IDEA to automatically import instead of hitting alt-enter 
AFAIK. See IDE options.

The "Reformat Code" will remove redundant imports.

Ian

On Tuesday, April 30, 2002, at 02:05 PM, [EMAIL PROTECTED] wrote:

> From: [EMAIL PROTECTED]
> Date: Tue Apr 30, 2002  02:05:37 PM US/Central
> To: IDEA EAP List <[EMAIL PROTECTED]>
> Subject: [Eap-list] Suggestion
> Reply-To: [EMAIL PROTECTED]
>
> Hi,
>
> Netbeans has an Import Management Tool which will take a file and fix 
> all
> the import statements according to a set of rules (no more than n fully
> qualified names, no more than m imports from a given package, etc.). 
> What's
> interesting is that if your code has unused imports, it removes them. It
> would be nice to have something similar in IDEA. When I cut and paste 
> code
> from elsewhere (yes, I do that sometimes without refactoring), it gets 
> a bit
> annoying to have to hit Alt-Enter all the time. I'm thinking there's a
> better way; if not, there should be!
>
> L
>
> --
> Laurent Duperval <mailto:[EMAIL PROTECTED]>
>
> CANN'S (or ALLEN'S) AXIOM
>     When all else fails, read the instructions.
>
>
>
> _______________________________________________
> Eap-list mailing list
> [EMAIL PROTECTED]
> http://www.intellij.com/mailman/listinfo/eap-list
>


_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list

Reply via email to