views:

12

answers:

1

I'm a migrating Eclipse IDE user and am learning my way round IntelliJ IDEA 9.

By default Eclipse IDE won't use a starred import until you import 99 classes from the same package, so it practically never happens.

But IntelliJ IDEA seems only too keen to do it, and I can't work out how to disable it.

For example, after typing JList then <ALT> + <ENTER> to auto-import, the whole javax.swing package is imported instead of just the class I specify.

I tried excluding javax.swing from the auto-completion, but that just stops any Swing classes from being suggested, which is counter-productive.

+2  A: 

You can change that in Settings -> Code Style -> Imports -> Class count to use import with '*'

Colin Hebert
Now both `Class count to use import with '*'` and `Names count to use static import with '*'` are set to `99` to copy Eclipse's behavior.Thanks!
isme