- IDEA 去除无用的 import 的快捷键
Ctrl + Alt + O
- IDEA 自动去除无用的 import
File -> Settings -> Editor -> General -> Auto Import -> Optimize imports on the fly
Ctrl + Alt + O
File -> Settings -> Editor -> General -> Auto Import -> Optimize imports on the fly