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

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

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