简体   繁体   中英

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

使用Intellij IDEA的自动导入功能时,如何使其导入包而不是单个类?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM