003.Android Studio设置自动导包及自动导包快捷键

Posted on 2017-11-05 10:47  nextfailure  阅读(235)  评论(0)    收藏  举报

方式一:Android studio只有导单个包的快捷键:Alt+Enter。

方式二:设置自动导所有的包

    点击File→Setting,Setting→Editor→General→Auto Import,勾选Add unambiguous imports on the fly即可自动导包,点击apply→OK