在 android studio 中启用自动导入的方法是什么? [windows]

What is the way to enable the auto-import in android studio ? [windows]

每当我需要导入每次我需要使用Alt+Enter。在 android studio 中启用 自动导入的方法是什么? (在 windows)

windows和osx的情况类似,所以不会有任何变化。

在 android 工作室转到

file --> setting --> auto-import --> check all options

喜欢

  • 显示自动导入
  • 即时优化导入 选项
  • 即时添加明确的导入选项

就是这样。

如上评论所述,检查 link What is the shortcut to Auto import all in Android Studio?