Android studio设置自动导包及自动导包快捷键

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



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

 

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

 


 

猜你喜欢

转载自ch-kexin.iteye.com/blog/2395979