有没有办法自动进口的(如在Eclipse 移 + 控制 + 0 )在Android的工作室?
Is there any way of auto importing (like in Eclipse Shift+Ctrl+O) in Android Studio?
我只找到控制 + 替代 + 0 这要求每一个东西,我得preSS 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的,你可以去文件
- > 设置
- > 编辑
- > 常规
- > 自动导入
- > 的Java
并进行以下修改:
For Windows/Linux, you can go to File
-> Settings
-> Editor
-> General
-> Auto Import
-> Java
and make the following changes:
变更插入上粘贴进口
值所有
标记添加unambigious进口的飞行
选项为选中
在Mac上,做同样的事情,Android的工作室
- > preferences
On a Mac, do the same thing in Android Studio
-> Preferences
在这之后,所有明确的进口将被自动添加。
After this, all unambiguous imports will be added automatically.