IDEA快捷键:
ctrl + alt + o
配置方式:
配置路径依次是:Settings --> Editor --> General --> Auto Import --> Java --> 勾选Optimize imports on the fly(for current project) --> 保存
配置方式图解:
IDEA快捷键:
ctrl + alt + o
配置方式:
配置路径依次是:Settings --> Editor --> General --> Auto Import --> Java --> 勾选Optimize imports on the fly(for current project) --> 保存
配置方式图解: