IDEA 实用功能Auto Import:自动优化导包(自动删除、导入包)

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

 

 

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

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

posted @ 2020-03-07 14:22  海天依色  阅读(600)  评论(0编辑  收藏  举报