首页 > 移动平台 > 详细

AndroidStudio自动导入包

时间:2017-07-07 22:11:44      阅读:428      评论:0      收藏:0      [点我收藏+]
IntelliJ IDEA可以自动优化导入包,但是有多个同名的类位于不同的包时,需要自己手动使用Alt + Enter进行导入。
  1. Settings→Editor→General→Auto Import
  2. 选中Optimize imports on the fly和Add unambiguous imports on the fly

技术分享

 
Optimize imports on the fly:自动去掉一些没有用到的包
Add unambiguous imports on the fly:自动帮我们优化导入的包
技术分享
AndroidStudio 同理

AndroidStudio自动导入包

原文:http://www.cnblogs.com/chase1/p/7134273.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!