针对Android Studio / IntelliJ中的所有项目即时优化导入

有没有一种方法可以为所有项目动态优化导入,而不仅仅是Android Studio / IntelliJ中的“针对当前项目”?

预期

优化在打开现有项目和/或创建新项目时启用的导入。

观测到的

Add unambiguous imports on the fly is IDE-level settings. However, Optimize imports on the fly does not appear to be as the parenthesis state for current project. I've tested this by creating a new project and opening the settings. As expected, Add unambiguous imports on the fly is selected while Optimize imports on the fly is not selected.

The current IntelliJ documentation, Auto imports, does not provide a solution.

enter image description here

评论