Mac Android Studio快捷键整理
为了提高工作效率,特地的整理了MAC版AndroidStudio快捷键的整理,如果后续还有,在继续补充!
⌥—>option|alt
⇧—>shift
⌃—>control
⌘—>command
⎋—>esc
↑↓←→
Code
alt+F7:Findusage
alt+command+L:格式化代码
alt+control+O:优化import(去掉无用的import)
command+O:OverrideMethods
command+I:ImplementMethods
command+B:Declaration查看定义
alt+command+B:Implementations查看其实现
command+U:SuperMethod(Class)
control+上下方向键:Previous/NextMethod
(shift+)F2:快递定位并高亮错误(deprecate,unused)
command+Z:Undo撤销
shift+command+Z:RedoTyping
alt+enter:引入包,添加注释…
control+enter:generatesetter,getter…
shift+command+T:添加Test
command+W:ExtendSelection
shift+command+W:ShrinkSelection
command+P:参数提示
command+Y(X):删除当前行(剪切当前行)
command+F11:添加/取消bookmark
shift+F11:显示bookmark列表
command++/-:展开收缩代码
shift+command+上下方向键:MoveLineUp/MoveLineDown
Search
command+F:Find
command+R:Replace
control+shift+F:FindinPath
control+shiftÏ+R:ReplaceinPath
alt+command+左右方向键:Back/Forward操作
command+E:RecentFile
shift+command+E:RecentlyChangeFiles
shift+shift:SearchMethod或者Class(SearchEverywhere:command+N,shift+command+N,shift+alt+command+N)
command+N:SearchClass
shift+command+N:SearchFile
shift+alt+command+N:SearchSymbol
Run/Debug
shift+F10:Run
shift+F9:Debug
command+F9:MakeProject
shift+command+F9:MakeModule
command+F2:关闭当前的执行的task
command+F8:添加/取消断点
shift+command+F8:查看所有断点
Debug:
F7:StepInto
F8:StepOver
shift+F8:Stepout
F9:resume
alt+F9:RuntoCursor
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:CommitChanges
shift+command+K:PushCommitChanges
command+T:UpdateProject
Setting
command+,:AndroidStudioPreferences
command+;:ProjectStructure
感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!