Android studio快捷键

功能描述keymap对应名字MacWin/Linux
提示错误解决方案Show Intention Actionsoption + enteralt + enter
快速构成代码Code Generatecommand + Nalt + insert
向下移动一行Move Line Downoption + shift + Downalt + shift + Down
向上移动一行Move Line Upoption + shift + Upalt + shift + Up
注释代码Comment with Line Commentcommand + /ctrl + /
格式化代码Reformat Codecommand + option + Lctrl + alt + L
if/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
 按照模板生成代码Insert Live Templatecommand + Jctrl + J
定位到行Navigate/Linecommand + Lctrl + G
快速到行首/尾Move Caret to Line Start/Endfn + command + Left/Rightctrl + Left/Right
查找类Navigate/Classcommand + Octrl + N
多行注释Code/Commentcommand + option + /ctrl + alt + /
查找替换Replacecommand + Rctrl + R
拷贝文件路径Copy Pathscommand + shift + Cctrl + shift + C
代码补全Complete Current Statementcommand + shift + enterctrl + shift + enter
全路径查找Find in Pathcommand + shift + Fctrl + shift + F
窗口内所有代码折叠/展开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
去除无效包引用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
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值