File -> setting -> Editor -> Code Style -> Java -> Imports
1、Scheme里的选项
Project :将当前设置应用于当前项目。
Default :将当前设置应用于全局。

2、Class count to use import with ‘’ : 99 (导入同一个包的类超过这个数值自动变为 * )
3、Names count to use static import with '
’:99(同上,但这是静态导入的)
4、将Package to Use import with ‘*’ 删掉这个框里的行(不管使用多少个类,只要在这个列表里都会变为 * )
idea 导入包不自动使用xxx.*

相关文章:

  • 2022-12-23
  • 2021-04-30
  • 2021-12-29
  • 2021-11-25
  • 2021-05-30
  • 2021-08-29
  • 2021-07-13
猜你喜欢
  • 2022-01-02
  • 2021-08-28
  • 2021-09-08
  • 2021-07-12
相关资源
相似解决方案