Android studio快捷键Mac版本
为了方便大家记住这些小技巧和快捷键,我把它写成了一个插件,欢迎大家下载使用:
http://chunsheng.me/EasyShortcut/
快捷键 描述 通用--------------------------------------------- Command + F9 Build(编译) Control + R Build and run(编译运行) Control + D Debug(调试) Command + Option + Y Synchronize(同步) Control + Command + F12 Maximize/minimize editor(最大化/最小化编辑器) Control + ` (backquote) Quick switch scheme(快速切换主题) Command + , (comma) Open settings dialogue(打开设置对话框) Command + ; (semicolon) Open project structure dialog(打开项目对话框) Control + Tab Switch between tabs and tool window(标签和工具栏切换) 导航和搜索----------------------------------------- Press Shift twice Search everything (including code and menus)(全局搜索) Command + F Find(查找) Command + G Find next(查找下一个) Command + Shift + G Find previous(查找上一个) Command + R Replace(替换) Command + O Find class(搜索类) Command + Shift + O Find file (instead of class)(搜索文件) Command + F12 Open file structure pop-up(弹出所打开文件的结构) Control + Right/Left Arrow Navigate(导航) between open editor tabs F4 / Command + Down Arrow Jump to source(跳到源码) Shift + F4 Open current editor tab in new window(新窗口打开编辑选项卡) Command + E Recently opened files pop-up(弹出最近打开文件) Command + Shift + E Recently edited files pop-up(弹出最近编辑文件) Command + Shift + Backspace Go to last edit location(最后编辑位置) Command + W Close active editor tab(关闭当前编辑选项卡) Esc Return to editor window from a tool window(回到编辑窗口) Shift + Esc Hide active or last active tool window(隐藏最近活动窗口) Command + L Go to line(跳转到行) Control + H Open type hierarchy(打开类层次结构) Command + Shift + H Open method hierarchy(打开方法层次结构) Control + Option + H Open call hierarchy(打开调用层次结构) 写代码必备------------------------------------------ Command + N Generate code (getters, setters, constructors, etc....) Control + O Override methods(重写方法) Control + I Implement methods(实现方法) Command + Option + T Surround with (if...else / try...catch / etc.) Command + minus/plus Collapse/expand current code block(折叠/展开代码块) Command + Shift + minus/plus Collapse/expand all code blocks(折叠/展开所有代码块) Command + D Duplicate current line or selection(复制当前行) Control + Space Basic code completion(基本代码补全) Control + Shift + Space Smart code completion (filters the list of methods and variables by expected type)(自动代码补全) Command + P Show parameters for selected method(显示方法参数) Command + U Go to super-method/super-class(跳转父类/方法) Command + Y Open quick definition lookup(打开快速定义查找) Command + Option + L Reformat code(格式化代码) Control + Option + I Auto-indent lines(自动缩进行) Control + Shift + J Smart line join(自动合并行) Command + Enter Smart line split(自动拆分行) 版本管理---------------------------------------------- Command + K Commit project to VCS(提交代码到版本管理系统) Command + T Update project from VCS(从版本系统更新项目) Option + Shift + C View recent changes(最近修改文件) Control + V Open VCS popup(弹出版本管理)
时刻怀有一颗虔诚之心,乐于分享。知识才更有意义。