Android Studio 中自动导入全部的快捷方式是什么? [英] What is the shortcut to Auto import all in Android Studio?
问题描述
在 Android StudioShift+Ctrl+O 中)>?
Is there any way of auto importing (like in Eclipse Shift+Ctrl+O) in Android Studio?
我发现只有 Ctrl+Alt+O 要求每件事,我必须按 Alt+回车接受.
I have found only Ctrl+Alt+O which ask for each thing, and I have to press Alt+Enter to accept it.
没有办法更快?
推荐答案
对于Windows/Linux,你可以去File
-> Settings
-> Editor
-> General
-> Auto Import
-> Java
并进行如下修改:
For Windows/Linux, you can go to File
-> Settings
-> Editor
-> General
-> Auto Import
-> Java
and make the following changes:
将
Insert imports on paste
值更改为All
标记即时添加明确的导入
选项为选中
在 Mac 上,在 Android Studio
-> Preferences
On a Mac, do the same thing in Android Studio
-> Preferences
在此之后,所有明确的导入将被自动添加.
After this, all unambiguous imports will be added automatically.
这篇关于Android Studio 中自动导入全部的快捷方式是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!