Android studio 的快捷键 MAC 和Win版本

来源:互联网 发布:mac宽带连接说鉴定失败 编辑:程序博客网 时间:2024/05/16 13:06
功能描述keymap对应名字MacWin/Linux提示错误解决方案Show Intention Actionsoption + enteralt + enterAS配置界面Preferencescommand + ,control+alt+S工程项目配置界面Project Structurecommand + ;Control+Alt+Shift+S快速构成代码Code Generatecommand + Nalt + insert代码提示Completion/Basiccontrol + space(mac会冲突, 手动修改)ctrl + 空格(win同样大部分和输入法冲突, 手动修改)选择视图select in any viewoption + F1alt + F1添加书签标识Toggle Bookmarkoption + F3ctrl + F11向下移动一行Move Line Downoption + shift + Downalt + shift + Down向上移动一行Move Line Upoption + shift + Upalt + shift + Up注释代码Comment with Line Commentcommand + /ctrl + /用代码模板包裹代码surround with Live Templatecommand + option + Jctrl + alt + J格式化代码Reformat Codecommand + option + Lctrl + alt + LCopy ReferenceCopy Referencecommand + option + shift + Cctrl + alt + shift + Cif/try等包裹代码Surround With..command + option + Tctrl + alt + T查看声明Declarationcommand + Bctrl + B快捷向下复制行Duplicate Line or Blockcommand + Dctrl + D删除行Delete Linecommand + deletectrl + Y快捷最近打开Recent Filescommand + Ectrl + E查找Edit/Find/Findcommand + Fctrl + F文件方法结构File Structurecommand + F12ctrl + F12显示书签Show Bookmarkscommand + F3shift + F11代码高亮向下查找Move To Next Occurrencecommand + GF3代码高亮向上查找Move To Previous Occurrencecommand + shift + Gshift + F3按照模板生成代码Insert Live Templatecommand + Jctrl + J定位到行Navigate/Linecommand + Lctrl + G快速到行首/尾Move Caret to Line Start/Endcommand + Left/Rightctrl + Left/Right代码折叠/展开Collapse/Expandcommand + 减号/加号ctrl + 减号/加号查找类Navigate/Classcommand + Octrl + N多行注释Code/Commentcommand + option + /ctrl + alt + /格式化代码Reformat Codecommand + option + Lctrl + alt + L提示参数类型Parameter Infocommand + Pctrl + P查找替换Replacecommand + Rctrl + R查找命令Find Actioncommand + shift + Actrl + shift + A拷贝文件路径Copy Pathscommand + shift + Cctrl + shift + C移动代码块Move Statement Up/Downcommand + shift + down/upctrl + shift + down/up代码补全Complete Current Statementcommand + shift + enterctrl + shift + enter全路径查找Find in Pathcommand + shift + Fctrl + shift + F代码高亮Highlight Usages in Filecommand + shift + F7alt + J窗口内所有代码折叠/展开Collapse/Expand Allcommand + shift + 减号/加号ctrl + shift + 减号/加号查找文件Navigate/Filecommand + shift + Octrl + shift + N全路径中替换Replace in Pathcommand + shift + Rctrl + shift + R大小写转换Toggle Casecommand + shift + Uctrl + shift + U显示粘贴版历史Paste from Historycommand + shift + Vctrl + shift + V快速查找定义 command + spacectrl + shift + I粘贴Pastecommand + Vctrl + V复制Copycommand + Cctrl + C去除无效包引用Optimize Importscontrol + option + Octrl + alt + O显示类关系继承体系Type Hierarchycontrol + Hctrl + H快速覆写方法override Methodscontrol + Octrl + O查找调用的位置Call hierarchycontrol + option + Hctrl + alt + H添加书签Toggle BookmarkF3F11扩大缩小选中范围Extend Selection/Shrink Selectionoption + UP/Downctrl + W + shift + W跳转到父类Super methodcommand + Uctrl + U关闭当前tab标签Editor Tabs / Closecommand + Wctrl + shift + a关闭除编辑窗口的其余窗口Hide All Tool Windowscommand + shift + F12ctrl + shift + F12预览方法定义Quick Definitioncommand + Yctrl + shift + I返回光标最后编辑位置Last Edit Locationcommand + shift + deletecontrol + shift + Backspace调到代码块首部/尾部Move Caret To Code BlockOption + Command + [ 或者 ]Control+[ 或者 ]重命名Renameshift + F6shift + F6抽取方法Extract Methodcommand + option + Mcontrol+alt+M抽取变量Extract Variablecommand + option + Vcontrol+alt+V抽取字段Extract Fieldcommand + option + Fcontrol+alt+F抽取常量Extract Constantcommand + option + Ccontrol+alt+C抽取参数Extract Parametercommand + option + Pcontrol+alt+P重构入口Refactor Thiscontrol + Tctrl + alt + shift + T

最近操作
Command +E(mac)    
Ctrl +E   (win)

最近修改
Command +Shift +E  (mac)
Ctrl +shift +enter (win)

文件查找
Command +o (mac)
Ctrl +n (win)

比上边的那个级别更高 查找
Command +shift+ o(mac)
Ctrl +shift +n (win)

操作记录
Command +option +Left\Right    (mac)
Command +[   \ ]

Ctrl +alt     +左右键(win)  


移动行 
option+shift +  方向键上\下(mac)
Alt +shift + 方向键 上\下(win)

查找方法的调用处
option+F7   (mac)
Alt +F7   (win)

方法的跟进
Command +B  (mac)
Ctrl +alt +B (win)



显示方法的参数:
command+p (mac)
Ctrl +p    (win)

行的快速操作:
快速删除行  command +X  (Mac)
快速复制行  Command +D (Mac)
                    Ctrl D (win)


多行操作
按住 option    然后拖住鼠标
Win 中是  alt


快速补全
Command +shift +enter  (mac)
Ctrl +shift +enter  (win)


快速 生成变量
Option +enter (mac)
Alt +enter (win)



代码的折叠

Command +  加号和减号 (mac)
Ctrl + 加号和减号


预览方法的定义
command +Y  (mac)
Ctrl +shift +I   (win )


抽取方法 
Command +option +M 
Ctrl +alt +M

重构入口
Ctrl +T 

Ctrl +alt +shift  +T

链接:http://www.jianshu.com/p/a1527d4c85a7   http://blog.csdn.net/dd864140130/article/details/51560664
原创粉丝点击