1.只针对当前页面删除无用导包:Code-Optimize Imports 快捷键 control+option+O
2.File–>Settings–>Editor–>General–>Auto Import
选中Optimizes imports on the fly,和Add unambiguous imports on the fly即可。
1.只针对当前页面删除无用导包:Code-Optimize Imports 快捷键 control+option+O
2.File–>Settings–>Editor–>General–>Auto Import
选中Optimizes imports on the fly,和Add unambiguous imports on the fly即可。