工欲善其事,必先利其器。

  来分享下一些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/...)的设置(默认无作用域)

否则会出现不出现的情况

其他好用的键

next highlighted error
pin active tabs 
 

皮肤的更改

这个很好玩,我把代码着色改成visual studio的.相关的设置可以参考我第三个链接
其他皮肤可以可以在http://color-themes.com 里面找
 
File -> import settings -> and select the Monokai-Sublime.jar
File -> Settings and search for “Theme”, select “Darcula”
 

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

https://software.intel.com/en-us/blogs/2014/10/20/how-to-ensure-you-are-using-intel-haxm-for-android-emulator

How to get the Monokai Color theme in Android Studio (and IntelliJ)

color-themes.com

最新文章

  1. GridView中显示时间日期格式问题
  2. 对.net 程序进行源码混淆
  3. Java排序算法——希尔排序
  4. 转:Configure your eclipse for C++
  5. 【UVALive 4642】Malfatti Circles(圆,二分)
  6. SDWebImage实现原理--两张图带你看懂
  7. Java魔法堂:自定义和解析注解
  8. Hazelcast介绍与使用
  9. SQL SERVER 2008筛选时报错 无法为该请求检索数据
  10. poj The Clocks 高斯消元
  11. [Practical Git] Show who changed a line last with git blame
  12. Java final知识点
  13. Eclipse下SpringBoot没有自动加载application.properties文件
  14. rsync使用sudo权限
  15. python调用百度语音识别接口实时识别
  16. Codeforces Round #298 (Div. 2) D. Handshakes 构造
  17. IoT Gateway Based on OSGi
  18. CentOS 7 SSH远程证书登陆
  19. ueditor使用小结【来源网络】
  20. 2015多校第7场 HDU 5378 Leader in Tree Land 概率DP

热门文章

  1. 【洛谷4719】 动态dp(树链剖分,dp,矩阵乘法)
  2. dpdk EAL: Error reading from file descriptor 23: Input/output error
  3. 将tomcat添加到服务中
  4. extjs4.0以上添加多行工具栏的方法
  5. (samba启动失败)smb.service: main process exited, code=exited, status=1/FAILURE
  6. easyui页面上字段排序并与后台交互
  7. git aliases
  8. 【洛谷P4719】动态dp 动态dp模板
  9. 多项式求逆元详解+模板 【洛谷P4238】多项式求逆
  10. 各种”xxx“ native gem required installed build tools 报错