在 Android Studio 中自动导入所有的快捷方式是什么? [英] What is the shortcut to Auto import all in Android Studio?

查看:30
本文介绍了在 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 import 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆