Intellij IDEA 自动清除无效 import 包 和 清除无效 import包 的快捷键

IDEA快捷键:

ctrl + alt + o

 配置方式:

配置路径依次是:Settings --> Editor --> General  --> Auto Import  -->  Java  --> 勾选Optimize imports on the fly(for current project) --> 保存

配置方式图解:

发布了146 篇原创文章 · 获赞 221 · 访问量 7万+

猜你喜欢

转载自blog.csdn.net/weixin_44299027/article/details/105705214