0

I am using Intellij Ultimate 2019.1 and very often when I hit alt+enter to add an import one some class some.package.SomeClass it adds import some.package.* instead of import some.package.SomeClass.

I was wondering if there is an option to have Intellij adding only single class imports.

Thank you for your attention.

João Matos
  • 6,102
  • 5
  • 41
  • 76

1 Answers1

2

This is possible if you open Preferences | Editor | Code Style | Java | Imports and set value like 9999999 to Class count to import with "*" and Names count to use static import with '*' options.

Feedforward
  • 4,521
  • 4
  • 22
  • 34