File --> Settings... --> Editor --> General --> Auto Import --> 勾选"Optimize imports on the fly(for current project)"

  IntelliJ设置自动删除无用import包

 

  IntelliJ设置自动删除无用import包

 

相关文章:

  • 2021-12-30
  • 2021-10-18
  • 2021-12-05
  • 2021-08-31
  • 2021-11-19
  • 2021-04-20
猜你喜欢
  • 2021-05-21
  • 2021-06-24
  • 2021-12-04
  • 2021-09-04
  • 2021-10-10
相关资源
相似解决方案