出自:http://www.cnblogs.com/jeffen/p/6025669.html
IntelliJ IDEA可以自动优化导入包,但是有多个同名的类位于不同的包时,需要自己手动使用Alt + Enter进行导入。
- Settings→Editor→General→Auto Import
- 选中Optimize imports on the fly和Add unambiguous imports on the fly
Optimize imports on the fly:自动去掉一些没有用到的包
Add unambiguous imports on the fly:
自动帮我们优化导入的包
本文介绍如何在IntelliJ IDEA中设置自动优化导入包的功能,包括去除未使用的包及自动添加明确的导入包。这对于提高开发效率非常有用。
8308

被折叠的 条评论
为什么被折叠?



