Disable IntelliJ Starred (Package) Imports?

前端 未结 3 1829
野性不改
野性不改 2021-01-29 19:30

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 s

3条回答
  •  时光取名叫无心
    2021-01-29 20:05

    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.

提交回复
热议问题