本文翻译自:What is the shortcut to Auto import all in Android Studio?
Is there any way of auto importing (like in Eclipse Shift + Ctrl + O ) in Android Studio? Android Studio中是否有任何自动导入方式(如Eclipse Shift + Ctrl + O )?
I have found only Ctrl + Alt + O which ask for each thing, and I have to press Alt + Enter to accept it. 我发现只有Ctrl + Alt + O要求每个东西,我必须按Alt + Enter接受它。
No way to do it faster? 没办法做得更快?
#1楼
参考:https://stackoom.com/question/17iKU/在Android-Studio中自动导入所有内容的快捷方式是什么
#2楼
For Windows/Linux, you can go to File
-> Settings
-> Editor
-> General
-> Auto Import
-> Java
and make the following changes: 对于Windows / Linux,您可以转到File
- >