IntelliJ IDEA自动导入包去除星号(import xxx.*)

打开设置>Editor>Code Style>Java>Scheme 下拉框内选择Default>Tab栏目中选择 Imports

① 将Class count to use import with ""改为99(导入同一个包的类超过这个数值自动变为 * )
② 将Names count to use static import with "
"改为99(同上,但这是静态导入的)
③ 将Package to Use import with "*"删掉默认的这两个包(不管使用多少个类,只要在这个列表里都会变为 * )

IntelliJ IDEA自动导入包去除星号(import xxx.*)

相关文章:

  • 2021-09-20
  • 2021-10-18
  • 2021-06-20
  • 2021-12-05
  • 2021-07-14
  • 2021-09-20
猜你喜欢
  • 2021-07-12
  • 2022-01-14
  • 2021-09-22
  • 2021-05-09
  • 2021-09-08
相关资源
相似解决方案