Files
AndroidNote/ChaosCrystal/AndroidStudio常用快捷键(Mac).md
2016-07-18 02:50:34 +08:00

22 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# AndroidStudio常用快捷键(Mac)
快捷键 | 作用
----------------------------|-----------------------------------------------
Option + Enter | 自动修正
Command + N | 自动生成代码(Getter Setter)
Command Alt L | 格式化代码
Command Alt T | 把选中的代码放在 try{} 、if{} 、 else{} 里
Command / | 注释 //
Command Shift / | 注释 /* */
Command Shift Up/Down | 语句上下移动
Option Shift Up/Down | 内容上下移动
Option + Command + M | 将选中代码块封装成一个方法
Command + D | 复制当前一行(或选择区域),并粘贴到下面
Command + Z | 后退
Command + Shift + Z | 前进
Control + Alt + O | 优化导入的包
Ctrl(Command)+ - / + | 折叠/展开代码
Ctrl(Command)+Shift+ - / + | 折叠/展开全部代码
Ctrl(Command)+Shift+. | 折叠/展开当前花括号中的代码