您的位置:首页 > 移动开发 > Android开发

Android studio 快捷键大全

2016-12-21 10:08 429 查看
功能描述keymap对应名字MacWin/Linux
提示错误解决方案Show Intention Actions
option + enter
alt + enter
AS配置界面Preferences
command + ,
control+alt+S
工程项目配置界面Project Structure
command + ;
Control+Alt+Shift+S
快速构成代码Code Generate
command + N
alt +
14505
insert
代码提示Completion/Basic
control + space
(mac会冲突, 手动修改)
ctrl + 空格
(win同样大部分和输入法冲突, 手动修改)
选择视图select in any view
option + F1
alt + F1
添加书签标识Toggle Bookmark
option + F3
ctrl + F11
向下移动一行Move Line Down
option + shift + Down
alt + shift + Down
向上移动一行Move Line Up
option + shift + Up
alt + shift + Up
注释代码Comment with Line Comment
command + /
ctrl + /
用代码模板包裹代码surround with Live Template
command + option + J
ctrl + alt + J
格式化代码Reformat Code
command + option + L
ctrl + alt + L
Copy ReferenceCopy Reference
command + option + shift + C
ctrl + alt + shift + C
if/try等包裹代码Surround With..
command + option + T
ctrl + alt + T
查看声明Declaration
command + B
ctrl + B
快捷向下复制行Duplicate Line or Block
command + D
ctrl + D
删除行Delete Line
command + delete
ctrl + Y
快捷最近打开Recent Files
command + E
ctrl + E
查找Edit/Find/Find
command + F
ctrl + F
文件方法结构File Structure
command + F12
ctrl + F12
显示书签Show Bookmarks
command + F3
shift + F11
代码高亮向下查找Move To Next Occurrence
command + G
F3
代码高亮向上查找Move To Previous Occurrence
command + shift + G
shift + F3
按照模板生成代码Insert Live Template
command + J
ctrl + J
定位到行Navigate/Line
command + L
ctrl + G
快速到行首/尾Move Caret to Line Start/End
command + Left/Right
ctrl + Left/Right
代码折叠/展开Collapse/Expand
command + 减号/加号
ctrl + 减号/加号
查找类Navigate/Class
command + O
ctrl + N
多行注释*Code/Comment *
command + option + /
ctrl + alt + /
格式化代码Reformat Code
command + option + L
ctrl + alt + L
提示参数类型Parameter Info
command + P
ctrl + P
查找替换Replace
command + R
ctrl + R
查找命令Find Action
command + shift + A
ctrl + shift + A
拷贝文件路径Copy Paths
command + shift + C
ctrl + shift + C
移动代码块Move Statement Up/Down
command + shift + down/up
ctrl + shift + down/up
代码补全Complete Current Statement
command + shift + enter
ctrl + shift + enter
全路径查找Find in Path
command + shift + F
ctrl + shift + F
代码高亮Highlight Usages in File
command + shift + F7
alt + J
窗口内所有代码折叠/展开Collapse/Expand All
command + shift + 减号/加号
ctrl + shift + 减号/加号
查找文件Navigate/File
command + shift + O
ctrl + shift + N
全路径中替换Replace in Path
command + shift + R
ctrl + shift + R
大小写转换Toggle Case
command + shift + U
ctrl + shift + U
显示粘贴版历史Paste from History
command + shift + V
ctrl + shift + V
快速查找定义 
command + space
ctrl + shift + I
粘贴Paste
command + V
ctrl + V
复制Copy
command + C
ctrl + C
去除无效包引用Optimize Imports
control + option + O
ctrl + alt + O
显示类关系继承体系Type Hierarchy
control + H
ctrl + H
快速覆写方法override Methods
control + O
ctrl + O
查找调用的位置Call hierarchy
control + option + H
ctrl + alt + H
添加书签Toggle Bookmark
F3
F11
扩大缩小选中范围Extend Selection/Shrink Selection
option + UP/Down
ctrl + W + shift + W
跳转到父类Super method
command + U
ctrl + U
关闭当前tab标签Editor Tabs / Close
command + W
ctrl + shift + a
关闭除编辑窗口的其余窗口Hide All Tool Windows
command + shift + F12
ctrl + shift + F12
预览方法定义Quick Definition
command + Y
ctrl + shift + I
返回光标最后编辑位置Last Edit Location
command + shift + delete
control + shift + Backspace
调到代码块首部/尾部Move Caret To Code Block
Option + Command + [ 或者 ]
Control+[ 或者 ]
重命名Rename
shift + F6
shift + F6
抽取方法Extract Method
command + option + M
control+alt+M
抽取变量Extract Variable
command + option + V
control+alt+V
抽取字段Extract Field
command + option + F
control+alt+F
抽取常量Extract Constant
command + option + C
control+alt+C
抽取参数Extract Parameter
command + option + P
control+alt+P
重构入口Refactor This
control + T
ctrl + alt + shift + T
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: