1.打印log
logd,普通log 输出
loge,logm,logi输出错误
logm,输出方法参数的log
2.快速 System.out.println();
sout +tab
3.快速打印main 函数
psvm
4.快速包裹代码块(比如 if / try catch …..)
ctrl+alt+t
5.快速运行
alt+shift+x
6.插入代码(get/set ,tostring, override method)
alt+insert
7 查看方法的内容(参数和返回值),或者color.xml颜色资源,string.xml文本资源的值
ctrl+shift+i
8.快速Toast
打Toast(或者前三个字母)然后选择联想列表中的create new toast
9.最近打开的文件
Ctrl+E
10.任意位置跳转到下一行
shift+Enter
11.左右切换tab
ctrl+alt+左箭头,又箭头
12 全局搜索
连续按两下 shift 全局搜索
13代码头部注释 文档描述
添加代码头注释:在File and Code Templates里面有Include,在File Header里面添加描述,比如
<code class="markdown">/**</code>
<code class="markdown">* 作者 你的名字</code>
<code class="markdown">* 时间 ${DATE} ${TIME} </code>
<code class="markdown">* 文件 ${PROJECT_NAME}</code>
<code class="markdown">* 描述 </code>