1. TODO
在Android Studio中待处理的任务可以在注释中使用TODO来标识 , 以表明这个地方是需要注意的.
1.1 添加TODO任务
操作 : 添加注释---> 输入TODO ---> 添加说明


1.2 查看TODO任务
操作 : 菜单--->view--->Tool Windows---> TODO



2 编辑
2.1 合并行
Windows快捷键 : Ctrl + Shift + j
Mac : ctrl + shift + J
2.2 扩大选择范围
windows : ctrl + w
mac : option + 上箭头
2.3 缩小范围
windows : ctrl + shift + w
mac : option + 下箭头
2.4 列选择模式
window : alt + shift + insert
mac : shift + command + 8
2.5 缩进
window : tab
要选中内容.
mac : tab
2.6 取消缩进
windows : shift + tab
mac : shift + tab
2.7 自动补全当前语句
windows : Ctrl + shift + Enter
mac : shift + command + Enter
作用:
- 自动补全方法名

- 自动补全代码

2.8 大小写切换
windows : ctrl + shift + U
mac : shift + command + U
3 视图
快捷键 :
- 项目工具窗口 :
command + 1
,Alt +1
- 收藏工具栏 :
command + 2
,Alt + 2
- 运行窗口 :
command + 4
,Alt + 4
- 调试窗口 :
command = 5
,Alt + 5
- Android Monitor :
command + 6
,Alt + 6
- 项目结构 :
command + 7
,Alt + 7
- 版本控制 :
command + 9
,Alt + 9
- 终端 :
fn + option + F12
,Alt + F12
使用Ctrl + TAB
可以进行快速切换.
网友评论