最全面的mac下的android studio快捷键
Action | Mac OSX | Win/Linux |
---|---|---|
注释代码(//) | Cmd + / | Ctrl + / |
注释代码(/**/) | Cmd + Option + / | Ctrl + Alt + / |
格式化代码 | Cmd + Option + L | Ctrl + Alt + L |
清除无效包引用 | Option + Control + O | Alt + Ctrl + O |
查找 | Cmd + F | Ctrl + F |
查找+替换 | Cmd + R | Ctrl + R |
上下移动代码 | Option + Shift + Up/Down | Alt + Shift + Up/Down |
删除行 | Cmd + Delete | Ctrl + Y |
扩大缩小选中范围 | Option + Up/Down | Ctrl + W/Ctrl + Shift + W |
快捷生成结构体 | Cmd + Option + T | Ctrl + Alt + T |
快捷覆写方法 | Ctrl + O | Ctrl + O |
快捷定位到行首/尾 | Cmd + Left/Right | Ctrl + Left/Right |
折叠展开代码块 | Cmd + Plus,Minus | Ctrl + Plus/Minus |
折叠展开全部代码块 | Cmd + Shift + Plus,Minus | Ctrl + Shift + Plus,Minus |
文件方法结构 | Cmd + F12 | Ctrl + F12 |
查找调用的位置 | Ctrl + Option + H | Ctrl + Alt + H |
大小写转换 | Cmd + Shift + U | Ctrl + Shift + U |
代码高亮
OSX:Shift + Cmd + F7
Win/Linux:Alt + J
代码高亮向上查找
OSX:Shift + Cmd + G
Win/Linux:Shift + F3
代码高亮向下查找
OSX:Cmd + G
Win/Linux:F3
文件方法结构
OSX:Cmd + F12
Win/Linux:Ctrl + F12
查找调用的位置
OSX/Win/Linux:Ctrl + Alt + H
快速查找定义
OSX:Cmd + Space
Win/Linux:Ctrl + Shift + I
折叠展开代码块
OSX:Cmd + Plus,Minus
Win/Linux:Ctrl + Shift + Plus/Minus
折叠展开全部代码块
OSX:Cmd + Shift + Plus,Minus
Win/Linux:
添加书签
OSX:F3
Win/Linux:F11
添加书签标识
OSX:Alt + F3
Win/Linux:Ctrl + F11
显示书签
OSX:Cmd + F3
Win/Linux:Shift + F11
查找动作
OSX:Cmd + Shift + A
Win/Linux:Ctrl + Shift + A
上下移动代码
OXS/Win/Linux:Alt + Shift + Up/Down
删除行
OSX:Cmd + Delete
Win/Linux:Ctrl + Y
快捷向下复制行
OSX:Cmd + D
Win/Linux:Ctrl + D
扩大缩小选中范围
OSX:Alt + Up/Down
Win/Linux:Ctrl + W/Ctrl + Shift + W
快捷生成结构体
OSX:Cmd + Alt + T
Win/Linux:Ctrl + Alt + T
快捷覆写方法
OSX:Ctrl + O
Win/Linux:
快捷定位到行首/尾
OSX:Cmd + Left/Right
按照模板生成代码
OSX:Cmd + J
Win/Linux: Ctrl + J
或者 .
注释代码(//)
OSX:Cmd + /
Win/Linux:
注释代码(/**/)
OSX:Cmd + Alt + /
Win/Linux:
格式化代码
OSX:Cmd + Alt + L
Win/Linux:
快捷选择
OSX:Alt + F1
Win/Linux:Alt + F1
快捷移动
OSX:Ctrl + Up/Down
Win/Linux:
快捷退至上一行末尾
OSX:Ctrl + Shift + J
Win/Linux:Ctrl + Shift + J
快捷最近打开
OSX:Cmd + E
Win/Linux:Ctrl + E
清楚无效引用
Alt + Control + O
Win/Linux:Alt + Control + O
代码补全
Cmd + Shift + Enter
Win/Linux:Ctrl + Shift + Enter
提示错误解决方案
Alt + Enter
Win/Linux:Alt + Enter
提示参数类型
Cmd + P
Win/Linux:Ctrl + P
查找+替换
Cmd + R
Win/Linux:Ctrl + R
查找
Cmd + F
Win/Linux:Ctrl + F
- CTRL + ALT + L (Win)
- OPTION + CMD + L (Mac)
- CTRL + Q (Win)
- F1 (Mac)
- CTRL + P
- ALT + Insert (Win)
- CMD + N (Mac)
- F4 (Win)
- CMD + down-arrow (Mac)
- CTRL + Y (Win)
- CMD + Backspace (Mac)
- CTRL + ALT + SHIFT + N (Win)
- OPTION + CMD + O (Mac)
- CTRL + F9 (Win)
- CMD + F9 (Mac)
Build and run
- SHIFT + F10 (Win)
- CTRL + R (Mac)
Toggle project visibility
- ALT + 1 (Win)
- CMD + 1 (Mac)
Navigate open tabs
- ALT + left-arrow; ALT + right-arrow (Win)
- CTRL + left-arrow; CTRL + right-arrow (Mac)
Open Class File Symbol
Open class
- CTRL+N(win)
- CMD+O(mac)
Open file
- CTRL+SHIFT+n(win)
- CMD+SHIFT+o (mac)
Open Symbol
- CTRL+SHIFT+ALT+N
- CMD+ALT+O
Recent Files Opened
- CTRL+E(win)
- CMD+E(mac)
Recently edited files
- CTRL+SHIFT+E(win)
- CMD+SHIFT+E(mac)
Previous Next/Previous Error
- SHIFT-F2/F2(win)
Last edited Location
- CTRL+SHIFT+backspace(win)
- CMD+SHIFT+backspace(mac)
- CTRL+B(win)
- CMD+B(mac)
- CTRL+U(win)
- CMD+Y(mac)