idea导包
分类:
文章
•
2025-01-27 22:09:04
Idea拥有自动导包的功能,下面则介绍如何使用
开启
- Setting–>Editor–>General–>Auto Import。

- 选中Optimize import one the fly(自动去掉没有用的包)和Add unambiguous imports on the fly(自动帮我们优化导入的包)。

关闭
- 将Optimize import one the fly和Add unambiguous imports on the fly去除即可。
参考文档