Intellij IDEA: How to auto-import Java packages than "import package.SpecificClass"

When using the Intellij IDEA auto-import feature, how do I import packages, rather than individual classes?

+4
source share
1 answer

In Preferences->Project Settings->Code Style->Javaselect the tab Imports. Uncheck the box USe Single Class Imports. Set Class count to use import with *to 1.

+9
source

Source: https://habr.com/ru/post/1570246/


All Articles