当前位置: 移动技术网 > 移动技术>移动开发>IOS > Mac Android Studio快捷键整理

Mac Android Studio快捷键整理

2019年07月24日  | 移动技术网移动技术  | 我要评论

       为了提高工作效率,特地的整理了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

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

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网