-
打开设置(setting):File > Setting
-
导航到编辑器设置:Editor > General > Auto Import
-
启用自动导入:勾选
Add unambiguous imports on the fly
和Optimize imports on the fly
打开设置(setting):File > Setting
导航到编辑器设置:Editor > General > Auto Import
启用自动导入:勾选 Add unambiguous imports on the fly
和 Optimize imports on the fly