为了提高工作效率,特地的整理了MAC 版 Android Studio 快捷键的整理,如果后续还有,在继续补充!

⌥―> option|alt
⇧―>shift
⌃―>control
⌘―>command
⎋―>esc
↑↓←→

Code 

alt+F7:Find usage
alt+command+L:格式化代码
alt+control+O:优化import(去掉无用的import)
command+O:Override Methods
command+I:Implement Methods
command+B:Declaration查看定义
alt+command+B:Implementations查看其实现
command+U:Super Method(Class)
control+上下方向键:Previous/Next Method
(shift+)F2:快递定位并高亮错误(deprecate,unused)
command+Z:Undo撤销
shift+command+Z:Redo Typing
alt+enter:引入包,添加注释…
control+enter:generate setter,getter…
shift+command+T:添加Test
command+W:Extend Selection
shift+command+W:Shrink Selection
command+P:参数提示
command+Y(X):删除当前行(剪切当前行)
command+F11:添加/取消bookmark
shift+F11:显示bookmark列表
command++/-:展开收缩代码
shift+command+上下方向键:Move Line Up/Move Line Down

Search

command+F:Find
command+R:Replace
control+shift+F:Find in Path
control+shiftÏ+R:Replace in Path
alt+command+左右方向键:Back/Forward操作
command+E:Recent File
shift+command+E:Recently Change Files
shift+shift:Search Method或者Class (Search Everywhere:command+N,shift+command+N,shift+alt+command+N)
command+N:Search Class
shift+command+N:Search File
shift+alt+command+N:Search Symbol

Run/Debug

shift+F10:Run
shift+F9:Debug
command+F9:Make Project
shift+command+F9:Make Module
command+F2:关闭当前的执行的task
command+F8:添加/取消断点
shift+command+F8:查看所有断点
Debug:
F7:Step Into
F8:Step Over
shift+F8:Step out
F9:resume
alt+F9:Run to Cursor

Refactor

shift+F6:重命名
command+F6:快速修改函数的参数,返回值或者类添加泛型等
F6:Move快速的移动方法或者类
F5:Copy快速的移动类
alt+command+C:提取Constant变量
alt+command+V:提取Variable(Local变量)
alt+command+F:提取Field变量
alt+command+M:提取Method

Window

control+左右方向键:tab切换
alt+F4:关闭当前tab
esc+command:切换当前的窗口
shift+esc:隐藏侧栏

VCS

command+K:Commit Changes
shift+command+K:Push Commit Changes
command+T:Update Project

Setting

command+,:Android Studio Preferences
command+;:Project Structure

 感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!

更多相关文章

  1. Android动态设置主题样式
  2. 在Android4.0 SDK的tools目录中运行模拟器emulator的环境变量的
  3. android本地推送(退出app后依然可以)
  4. Android---配置adb环境变量
  5. Android(安卓)Service的两种启动方式
  6. someone's android note
  7. [置顶] Android-->Rxjava与Retrofit2的结合实战
  8. Android(安卓)SharedPreferences的使用
  9. Android(安卓)opencv人脸识别

随机推荐

  1. Android初学者
  2. Android(安卓)Activity的启动模式(androi
  3. Android运行模拟器
  4. Android串口通信实例分析【附源码】
  5. 简单android音乐播放器中 android学习(四)
  6. linux下用git下载android任意模块源码
  7. Android(安卓)2.2 API Demos -- Redirect
  8. Kotlin for Android(安卓)- 常用关键字
  9. Android模拟器使用SD卡
  10. Android(安卓)http 请求