idea中导包出现import org.apach.*,提交代码老出现冲突,不想使用.*的设置

打开设置>Editor>Code Style>Java>Scheme Default>Importsspa

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

  比较详细的图解:blog

相关文章
相关标签/搜索