原文链接](https://www.cnblogs.com/jeffen/p/6025669.html)
(idea自动导包)

IntelliJ IDEA可以自动优化导入包,但是有多个同名的类位于不同的包时,需要自己手动使用Alt + Enter进行导入。

1.Settings→Editor→General→Auto Import
2.选中Optimize imports on the fly和Add unambiguous imports on the fly

idea自动导包

相关文章:

  • 2021-10-10
  • 2021-07-21
  • 2021-09-06
  • 2021-09-08
  • 2021-12-02
  • 2021-09-07
  • 2021-04-18
  • 2021-10-23
猜你喜欢
  • 2021-08-29
  • 2021-07-13
  • 2022-01-01
相关资源
相似解决方案