Android Studio开发笔记
工欲善其事,必先利其器。
来分享下一些tips吧。
android studio优化
我的习惯是从visual studio沿袭过来的,所以快捷键都是参照VS改过来的.
设置调优
不打开上次打开的工程
在setting里面搜索Reopen里面有Reopen last project on startup,不勾就行了
ctrl+鼠标滚轮缩放代码(搜索Mouse Wheel ,勾上即可)
Click on File -> Settings -> Editor
and check the field: Change font-size with CRTL + Mouse Wheel
auto import
在editor-general-里的auto import项中,java节点里面全部勾上.insert import on paste这个设置就见仁见智了,我喜欢编辑器自动加上去.
取消智能感应大小写敏感
Case sensitive completion选择none即可.code completion里面其他设置也蛮不错的,比如auto popup documenttion,和弹出参数的时间,这个调低了一点.
鼠标移动显示文档
我非常喜欢这个设置,因为适合新手,搜索show quick doc on mouse move ,勾选自己设置delay.
方法的快速注释
/**然后回车即可
live template
这个要重点关注!现在版本的Android studio,已经可以直接在写代码的时候候选里面有live template. 不过每一个代码片段要注意作用域(java/c++/html/...)的设置(默认无作用域)
否则会出现不出现的情况
其他好用的键
皮肤的更改
AVD
屏幕方向不对
A:建立AVD的时候在 "Edit Android Virtual Device (AVD)"里面"Hardware keyboard present"不要勾选上.这个是AVD的bug.目前只能这么解决
告别呆逼虚拟机
A:1安装intel镜像;2安装haxm;3编辑AVD.正确的结果是运行设备时,提示:HAX is working and emulator runs in fast virt mode
启动AVD错误
Emulator] emulator: ERROR: Unable to load Vm from snapshot. The snapshot has been saved for a different hardware configuration.
A:删除该AVD的snapshots.img文件或者禁用snapshot
参考链接:
http://www.cnblogs.com/beginor/archive/2013/01/13/2858228.html
How to get the Monokai Color theme in Android Studio (and IntelliJ)
最新文章
- GridView中显示时间日期格式问题
- 对.net 程序进行源码混淆
- Java排序算法——希尔排序
- 转:Configure your eclipse for C++
- 【UVALive 4642】Malfatti Circles(圆,二分)
- SDWebImage实现原理--两张图带你看懂
- Java魔法堂:自定义和解析注解
- Hazelcast介绍与使用
- SQL SERVER 2008筛选时报错 无法为该请求检索数据
- poj The Clocks 高斯消元
- [Practical Git] Show who changed a line last with git blame
- Java final知识点
- Eclipse下SpringBoot没有自动加载application.properties文件
- rsync使用sudo权限
- python调用百度语音识别接口实时识别
- Codeforces Round #298 (Div. 2) D. Handshakes 构造
- IoT Gateway Based on OSGi
- CentOS 7 SSH远程证书登陆
- ueditor使用小结【来源网络】
- 2015多校第7场 HDU 5378 Leader in Tree Land 概率DP
热门文章
- 【洛谷4719】 动态dp(树链剖分,dp,矩阵乘法)
- dpdk EAL: Error reading from file descriptor 23: Input/output error
- 将tomcat添加到服务中
- extjs4.0以上添加多行工具栏的方法
- (samba启动失败)smb.service: main process exited, code=exited, status=1/FAILURE
- easyui页面上字段排序并与后台交互
- git aliases
- 【洛谷P4719】动态dp 动态dp模板
- 多项式求逆元详解+模板 【洛谷P4238】多项式求逆
- 各种”xxx“ native gem required installed build tools 报错