AndroidStudio常用快捷键
来源:互联网 发布:mac删除邮件占用空间 编辑:程序博客网 时间:2024/05/17 14:17
ps:技术总结是一直做但没有耐心做到自我满意的遗憾事
同行归纳,原文地址(里面有gif图助于理解),从微信公众号码个蛋
获取得知
option + enter
alt + enter
AS配置界面Preferencescommand + ,
control+alt+S
工程项目配置界面Project Structurecommand + ;
Control+Alt+Shift+S
快速构成代码Code Generatecommand + N
alt + insert
代码提示Completion/Basiccontrol + space
(mac会冲突, 手动修改)ctrl + 空格
(win同样大部分和输入法冲突, 手动修改)选择视图select in any viewoption + F1
alt + F1
添加书签标识Toggle Bookmarkoption + F3
ctrl + F11
向下移动一行Move Line Downoption + shift + Down
alt + shift + Down
向上移动一行Move Line Upoption + shift + Up
alt + shift + Up
注释代码Comment with Line Commentcommand + /
ctrl + /
用代码模板包裹代码surround with Live Templatecommand + option + J
ctrl + alt + J
格式化代码Reformat Codecommand + option + L
ctrl + alt + L
Copy ReferenceCopy Referencecommand + option + shift + C
ctrl + alt + shift + C
if/try等包裹代码Surround With..command + option + T
ctrl + alt + T
查看声明Declarationcommand + B
ctrl + B
快捷向下复制行Duplicate Line or Blockcommand + D
ctrl + D
删除行Delete Linecommand + delete
ctrl + Y
快捷最近打开Recent Filescommand + E
ctrl + E
查找Edit/Find/Findcommand + F
ctrl + F
文件方法结构File Structurecommand + F12
ctrl + F12
显示书签Show Bookmarkscommand + F3
shift + F11
代码高亮向下查找Move To Next Occurrencecommand + G
F3
代码高亮向上查找Move To Previous Occurrencecommand + shift + G
shift + F3
按照模板生成代码Insert Live Templatecommand + J
ctrl + J
定位到行Navigate/Linecommand + L
ctrl + G
快速到行首/尾Move Caret to Line Start/Endcommand + Left/Right
ctrl + Left/Right
代码折叠/展开Collapse/Expandcommand + 减号/加号
ctrl + 减号/加号
查找类Navigate/Classcommand + O
ctrl + N
多行注释Code/Comment command + option + /
ctrl + alt + /
格式化代码Reformat Codecommand + option + L
ctrl + alt + L
提示参数类型Parameter Infocommand + P
ctrl + P
查找替换Replacecommand + R
ctrl + R
查找命令Find Actioncommand + shift + A
ctrl + shift + A
拷贝文件路径Copy Pathscommand + shift + C
ctrl + shift + C
移动代码块Move Statement Up/Downcommand + shift + down/up
ctrl + shift + down/up
代码补全Complete Current Statementcommand + shift + enter
ctrl + shift + enter
全路径查找Find in Pathcommand + shift + F
ctrl + shift + F
代码高亮Highlight Usages in Filecommand + shift + F7
alt + J
窗口内所有代码折叠/展开Collapse/Expand Allcommand + shift + 减号/加号
ctrl + shift + 减号/加号
查找文件Navigate/Filecommand + shift + O
ctrl + shift + N
全路径中替换Replace in Pathcommand + shift + R
ctrl + shift + R
大小写转换Toggle Casecommand + shift + U
ctrl + shift + U
显示粘贴版历史Paste from Historycommand + shift + V
ctrl + shift + V
快速查找定义command + space
ctrl + shift + I
粘贴Pastecommand + V
ctrl + V
复制Copycommand + C
ctrl + C
去除无效包引用Optimize Importscontrol + option + O
ctrl + alt + O
显示类关系继承体系Type Hierarchycontrol + H
ctrl + H
快速覆写方法override Methodscontrol + O
ctrl + O
查找调用的位置Call hierarchycontrol + option + H
ctrl + alt + H
添加书签Toggle BookmarkF3
F11
扩大缩小选中范围Extend Selection/Shrink Selectionoption + UP/Down
ctrl + W + shift + W
跳转到父类Super methodcommand + U
ctrl + U
关闭当前tab标签Editor Tabs / Closecommand + W
ctrl + shift + a
关闭除编辑窗口的其余窗口Hide All Tool Windowscommand + shift + F12
ctrl + shift + F12
预览方法定义Quick Definitioncommand + Y
ctrl + shift + I
返回光标最后编辑位置Last Edit Locationcommand + shift + delete
control + shift + Backspace
调到代码块首部/尾部Move Caret To Code BlockOption + Command + [ 或者 ]
Control+[ 或者 ]
重命名Renameshift + F6
shift + F6
抽取方法Extract Methodcommand + option + M
control+alt+M
抽取变量Extract Variablecommand + option + V
control+alt+V
抽取字段Extract Fieldcommand + option + F
control+alt+F
抽取常量Extract Constantcommand + option + C
control+alt+C
抽取参数Extract Parametercommand + option + P
control+alt+P
重构入口Refactor Thiscontrol + T
ctrl + alt + shift + T
阅读全文
0 0
- AndroidStudio常用快捷键
- AndroidStudio常用快捷键
- androidstudio 常用快捷键
- AndroidStudio 常用快捷键
- AndroidStudio 常用快捷键
- AndroidStudio常用快捷键
- androidstudio 常用快捷键
- AndroidStudio常用快捷键
- AndroidStudio常用快捷键
- androidstudio 常用快捷键
- AndroidStudio之常用快捷键
- AndroidStudio常用快捷键整理
- AndroidStudio常用快捷键
- AndroidStudio 常用快捷键
- AndroidStudio简单常用快捷键
- AndroidStudio 常用快捷键
- AndroidStudio常用快捷键
- AndroidStudio常用快捷键
- 95. Unique Binary Search Trees II
- OBS (open boardcast server)结构分析
- 无和集问题(回溯)
- android studio用起来很卡,解决方法
- 斐波拉契加强版
- AndroidStudio常用快捷键
- redis持久化RDB和AOF
- MySQL SUM()函数按条件求和
- 安卓传感器+WIFI,WIFI写在外部,时间可控
- 6.13
- Caused by: java.lang.ClassNotFoundException: org.apache.catalina.LifecycleException
- 第二章习题
- 7-25 空心字母金字塔(10 分)
- python里面的join函数用法及简单示例