Skip to content

Commit

Permalink
add studio shortcut for mac
Browse files Browse the repository at this point in the history
  • Loading branch information
CharonChui authored and CharonChui committed Sep 5, 2015
1 parent 42dd583 commit 7864be0
Showing 1 changed file with 38 additions and 36 deletions.
74 changes: 38 additions & 36 deletions Android基础/AndroidStudio使用教程(第一弹).md
Original file line number Diff line number Diff line change
Expand Up @@ -56,50 +56,52 @@ AndroidStudio使用教程(第一弹)

| 功能 | Windows | Mac |
| ------------------------------------------------------------ |:-------------------------------------------:| --------------------------------------------:|
| 代码提示 (同`Eclipse`中`Alt+/`) | `Ctrl+空格` | `Command+空格` |
| 查找文件 (同`Eclipse`中`Ctrl+Shift+R`) | `Ctrl+Shjft+N` | `Command+Option+N` |
| 显示当前文件的结构 (同`Eclipse`中`Ctrl+0`) | `Ctrl+F12` | `Command+F12` |
| 格式化 (同`Eclipse`中`Ctrl+Shift+F`) | `Ctrl+Alt+L` | `Command+Option+L` |
| 优化导入的包 (同`Eclipse`中`Ctrl+Shift+O`) | `Ctrl+Alt+O` | `Option+Control+O` |
| 查看文档 (同`Eclipse`中`F2`) | `Ctrl+Q` | `Command+Q` |
| 查找使用位 (同`Eclipse`中`File Search`) | `Alt+F7` | `Option+F7` |
| 代码提示 (同`Eclipse`中`Alt+/`) | `Ctrl+空格` | `Ctrl+空格` |
| 查找文件 (同`Eclipse`中`Ctrl+Shift+R`) | `Ctrl+Shjft+N` | `双击Shift` |
| 显示当前文件的结构 (同`Eclipse`中`Ctrl+0`) | `Ctrl+F12` | `Command+F12` |
| 格式化 (同`Eclipse`中`Ctrl+Shift+F`) | `Ctrl+Alt+L` | `Command+Option+L` |
| 优化导入的包 (同`Eclipse`中`Ctrl+Shift+O`) | `Ctrl+Alt+O` | `Ctrl+Option+O` |
| 查看文档 (同`Eclipse`中`F2`) | `Ctrl+Q` | `F1` |
| 查找使用位 (同`Eclipse`中`File Search`) | `Alt+F7` | `Option+F7` |
| 上下移动代码 | `Alt+Shift+Up/Down` | `Option+Shift+Up/Down` |
| 剪切当前行 | `Ctrl+X` | `Option+Shift+Up/Down` |
| 剪切当前行 | `Ctrl+X` | `Command+x` |
| 删除当前行 | `Ctrl+Y` | `Command+Delete` |
| 快速重写方法 override | `Ctrl+O` | `Command+O` |
| 快速重写方法 override | `Ctrl+O` | `Ctrl+O` |
| 折叠展开代码块 | `Ctrl+Plus/Minus` | `Command+Plus/Minus` |
| 折叠展开全部代码块 | `Ctrl+Shift+Plus/Minus` | `Command+Shift+Plus/Minus` |
| 大小写转换 | `Ctrl+Shift+U` | `Command+Shift+U` |
| 新建文件或生成代码(`GetSet`) | `Alt+Insert` | |
| 快速修复(同`Eclipse`中`F1`) | `Alt+Enter` | |
| 显示方法参数 | `Ctrl+P` | |
| 新建文件或生成代码(`GetSet`) | `Alt+Insert` | `Command+N` |
| 快速修复(同`Eclipse`中`F1`) | `Alt+Enter` | `Option+Enter` |
| 显示方法参数 | `Ctrl+P` | `Command+P` |
| 运行项目 | `Shift+F10` | `Ctrl+R` |
| 跳转到上次修改的地方 | `Ctrl+Shift+Backspace` | |
| 快捷生成结构体(加try catch等) | `Ctrl+Alt+T` | `Command+Option+T` |
| 显示最近编辑列表 | `Ctrl+E` | |
| 跳转到大括号开头或结尾 | `Ctrl+{或}` | |
| 在方法间移动 | `Alt+↑或↓` | |
| 切换已打开的文件视图 | `Alt+←或→` | |
| 重命名 | `Shift+F6` | |
| 跳转到上次修改的地方 | `Ctrl+Shift+Backspace` | `Command+Shift+Backspace` |
| 快捷生成结构体(加try catch等) | `Ctrl+Alt+T` | `Command+Option+T` |
| 显示最近编辑列表 | `Ctrl+E` | `Command+E` |
| 跳转到大括号开头或结尾 | `Ctrl+{或}` | ..... |
| 在方法间移动 | `Alt+↑或↓` | `Ctrl+↑或↓` |
| 切换已打开的文件视图 | `Alt+←或→` | `Ctrl+←或→` |
| 重命名 | `Shift+F6` | `Shift+F6` |
| 直接进入源码 | `F4` | |
| 快速打开该类或方法(与F4虽然大部分情况下相同,但他俩不一样) | `Ctrl+B`如在布局文件上点会直接进入布局文件 | |
| 快速定位到文件错误或警告位置 | `F2` | |
| 在当前位置复制当前行 | `Ctrl+D` | |
| 选中两个文件或目录后进行比较(活生生一个简单的BeyondCompare) | `Ctrl+D` | |
| 开关`Project`视图 | `Alt+1` | |
| 关闭当前窗口 | `Ctrl+_F4` | |
| 实现接口方法 implement | `Ctrl+I` | `` |
| 抽象方法查看具体有哪些实现类 | `Ctrl+Alt+B` | `` |
| 单行注释 | `Ctrl+/` | `` |
| 多行注释 | `Ctrl+Shit+/` | `` |
| 复制,如果当前行没有选中内容就复制当前行 | `Ctrl+C` | `` |
| 打开该类的关系图,查看该类的继承或实现 | `Ctrl+H` | `` |
| 提示代码缩写,如so后点击提示System.out.print等 | `Ctrl+J` | `` |
| 进入父类方法的实现 UP | `Ctrl+U` | `` |
| 选择最近所有复制过内容的列表 | `Ctrl+Shift+V` | |
| 快速打开该类或方法(与F4虽然大部分情况下相同,但他俩不一样) | `Ctrl+B`如在布局文件上点会直接进入布局文件 | `Command+B` |
| 快速定位到文件错误或警告位置 | `F2` | `F2` |
| 在当前位置复制当前行 | `Ctrl+D` | `Command+D` |
| 选中两个文件或目录后进行比较(活生生一个简单的BeyondCompare) | `Ctrl+D` | `Command+D` |
| 开关`Project`视图 | `Alt+1` | `Command+1` |
| 关闭当前窗口 | `Ctrl+_F4` | `Command+W` |
| 实现接口方法 implement | `Ctrl+I` | `Ctrl+I` |
| 抽象方法查看具体有哪些实现类 | `Ctrl+Alt+B` | `Command+Option+B` |
| 单行注释 | `Ctrl+/` | `Command+/` |
| 多行注释 | `Ctrl+Shit+/` | `Command+Option+/` |
| 复制,如果当前行没有选中内容就复制当前行 | `Ctrl+C` | `Command+C` |
| 打开该类的关系图,查看该类的继承或实现 | `Ctrl+H` | `Ctrl+H` |
| 提示代码缩写,如so后点击提示System.out.print等 | `Ctrl+J` | `Command+J` |
| 进入父类方法的实现 UP | `Ctrl+U` | `Command+U` |
| 抽取某一个块代码为单独的变量或者方法 | `Ctrl+Alt+V` | `Command+Option+V`  方法是`Command+Option+M` |
| 选择最近所有复制过内容的列表 | `Ctrl+Shift+V` | `Command+Shift+V` |
| 通过卡片的方式,直接查看该方法的具体内容或者图片,
不用再通过新开一个页面查看了,看代码实现的时候非常方便。 | `Ctrl+Shift+I` | |
| 全局搜索 | `Ctrl+Shift+F` | |
不用再通过新开一个页面查看了,看代码实现的时候非常方便。 | `Ctrl+Shift+I` | `Option+Space` |
| 全局搜索 | `Ctrl+Shift+F` | `Command+Shift+F` |
| 上一步、下一步 | `` | `Command+[或]` |


---
Expand Down

0 comments on commit 7864be0

Please sign in to comment.