Auto Import设置

1.进去 Settings→Editor→General→Auto Import 
然后勾选Add unambiguous imports on the fly以及Optimize imports on the fly

Idea设置自动导包

Add unambiguous imports on the fly:快速添加明确的导入。

Optimize imports on the fly:快速优化导入,优化的意思即自动帮助删除无用的导入。
 

相关文章:

  • 2021-12-29
  • 2021-12-30
  • 2021-09-27
  • 2022-01-26
猜你喜欢
  • 2021-09-06
  • 2021-09-07
  • 2021-04-18
  • 2021-10-23
  • 2022-12-23
  • 2021-04-30
相关资源
相似解决方案