有没有办法为所有项目即时优化导入,而不仅仅是 Android Studio/IntelliJ 中的“当前项目”?
预期的
优化在打开现有项目和/或创建新项目时启用的导入。
观察到的Add unambiguous imports on the fly
是IDE级别的设置。然而,Optimize imports on the fly
似乎不是括号状态 for current project
.我通过创建一个新项目并打开设置对此进行了测试。正如预期的那样,Add unambiguous imports on the fly
被选中同时 Optimize imports on the fly
未被选中。
当前的 IntelliJ 文档,Auto imports ,不提供解决方案。
尝试的解决方案
启用 Optimize imports on the fly (for current project)
在新项目的首选项下...
这产生了与上面相同的观察结果。
这也已添加到 IntelliJ community forum .
最佳答案
感谢您的反馈,我已经在 YouTrack 中提交了一张票:
关于java - 即时优化 Android Studio/IntelliJ 中所有项目的导入,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61109221/