Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

When using Intellij IDEA's auto importing feature, how to make it import packages rather than individual classes?

like image 664
Chip Zhang Avatar asked Jan 07 '15 01:01

Chip Zhang


1 Answers

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

like image 122
Dima Avatar answered Sep 22 '22 00:09

Dima