3 comments
Comment actions Permalink

Preferences->Editor->Auto Import->Optimize Imports on the Fly will automatically remove unuxed imports.

2
Comment actions Permalink

thx that's what I was looking for

0
Comment actions Permalink

On Fri, 23 Sep 2011 19:42:34 MSD, Stephen Boesch
<no_reply@jetbrains.com> wrote, quoted or indirectly quoted someone
who said :

>I don't see it under Settings | Code | Imports.

I prefer to it manually, as part of reformat code.

If it tidies code which in a chaotic state, e.g. you have just pasted
in a mess of code from elsewhere, you often find that it tosses out
all kinds of GOOD imports.  You then have to tediously recreate them.

I don't tidy until I have a clean compile.
--
Roedy Green Canadian Mind Products
http://mindprod.com
It should not be considered an error when the user starts something
already started or stops something already stopped. This applies
to browsers, services, editors... It is inexcusable to
punish the user by requiring some elaborate sequence to atone,
e.g. open the task editor, find and kill some processes.

1

Please sign in to leave a comment.