IDEA 设置自动导入包,以及手动导入包 自动导入包 IntellJ IDEA -> Preferences -> Editor -> Auto Import 选中 Add unambiguous imports on the fly 选中 Optimize imports on the fly 手动导入包 快捷键: alt + enter