分别打开 Settings
-> Editor
-> General
-> Auto Import
Add unambiguous imports on the fly:自动优化导入的包
Optimize imports on the fly:自动去掉没有用到的包
分别打开 Settings
-> Editor
-> General
-> Auto Import
Add unambiguous imports on the fly:自动优化导入的包
Optimize imports on the fly:自动去掉没有用到的包