Disable IntelliJ Starred (Package) Imports?

You can set this setting here.

In IDEA 14+ the sequence is:

Settings > Editor > Code Style > Java > Imports > Class count to use import with '*'

In older version of IDEA:

Settings -> Java -> Code Style -> Imports -> Class count to use import with '*'

The feature can not be disabled. You need to set it to a high value, e.g. 99.

In 2016.1.1 version You should also remove the lines under Packages to Use Import with '*', e.g. import javax.*;


IntelliJ IDEA:

  • 14 & 15 & 16 EAP

    File > Settings... > Editor > Code Style > Java > Imports > in General area add a big number for Class count to use import with '*': / Names count to use static import with '*':

    File > Settings... > Editor > Code Style > Java > Imports > General > Class count to use import with '*'

IntelliJ IDEA:

  • 12 & 13

    File > Settings... > Code Style > Java > Imports > in General area add a big number for Class count to use import with '*': File > Settings... > Code Style > Java > Imports > General > Class count to use import with '*'

    P.S.: Java is after Code Style in the path.