标签: java intellij-idea
使用Intellij IDEA的自动导入功能时,如何让它导入包而不是单个类?
答案 0 :(得分:11)
在Preferences->Project Settings->Code Style->Java选择Imports标签中。取消选中USe Single Class Imports。将Class count to use import with *设为1.
Preferences->Project Settings->Code Style->Java
Imports
USe Single Class Imports
Class count to use import with *