通用 General
Control+S
Save allControl+Alt+Y
SynchronizeControl+Shift+F12
Maximize/minimize editorAlt+Shift+F
Add to favoritesAlt+Shift+I
Inspect current file with current profile- Control+`(backquote) Quick switch scheme
Control+Alt+S
Open settings dialogueControl+Alt+Shift+S
Open project structure dialogControl+Tab
Switch between tabs and tool window
导航/搜索 Navigating and searching within Studio
Press Shift twice
Search everything (including code and menus)Control+F
FindF3
Find nextShift+F3
Find previousControl+R
ReplaceControl+Shift+A
Find actionControl+Alt+Shift+N
Search by symbol nameControl+N
Find class. 查找类。Control+Shift+N
Find file (instead of class)Control+Shift+F
Find in path. 相当于在全局搜索,比如搜索代码中某个出现的字符串,很方便。Control+F12
Open file structure pop-upAlt+Right Arrow or Left Arrow
Navigate between open editor tabsF4 or Control+Enter
Jump to sourceShift+F4
Open current editor tab in new windowControl+E
Recently opened files pop-up. 查看最近打开过的文件(包括编辑,只要打开就算)。Control+Shift+E
Recently edited files pop-upControl+Shift+Backspace
Go to last edit locationControl+F4
Close active editor tabEsc
Return to editor window from a tool windowShift+Esc
Hide active or last active tool windowControl+G
Go to line. 直接跳到某一行。Control+H
Open type hierarchyControl+Shift+H
Open method hierarchyControl+Alt+H
Open call hierarchy
视图 Viewing layouts
Control+plus or Control+minus
Zoom in/outControl+0
Fit to screenControl+Shift+1
Actual size
Design tools: Layout Editor
略
Design tools: Navigation Editor
略
代码编辑 Writing code
Alt+Insert
Generate code (getters, setters, constructors, hashCode/equals, toString, new file, new class)Control+O
Override methodsControl+I
Implement methodsControl+Alt+T
Surround with (if…else / try…catch / etc.)Control+Y
Delete line at caretControl+minus or Control+plus
Collapse/expand current code blockControl+Shift+minus or Control+Shift+plus
Collapse/expand all code blocks. 展开/合并当前文件的所有代码块。Control+D
Duplicate current line or selection. 复制当前行。Control+Space
Basic code completionControl+Shift+Space
Smart code completion (filters the list of methods and variables by expected type)Control+Shift+Enter
Complete statementControl+Q
Quick documentation lookupControl+P
Show parameters for selected methodControl+B or Control+click
Go to declaration (directly)Control+Alt+B
Go to implementationsControl+U
Go to super-method/super-classControl+Shift+I
Open quick definition lookupAlt+1
Toggle project tool window visibilityF11
Toggle bookmarkControl+F11
Toggle bookmark with mnemonicControl+/
Comment/uncomment with line commentControl+Shift+/
Comment/uncomment with block commentControl+W
Select successively increasing code blocksControl+Shift+W
Decrease current selection to previous stateControl+[
Move to code block startControl+]
Move to code block endControl+Shift+[
Select to the code block startControl+Shift+]
Select to the code block endControl+Delete
Delete to end of wordControl+Backspace
Delete to start of wordControl+Alt+O
Optimize importsAlt+Enter
Project quick fix (show intention actions and quick fixes)Control+Alt+L
Reformat codeControl+Alt+I
Auto-indent linesTab or Shift+Tab
Indent/unindent linesControl+Shift+J
Smart line joinControl+Enter
Smart line splitShift+Enter
Start new lineF2 or Shift+F2
Next/previous highlighted error
编译/运行 Build and run
Control+F9
BuildShift+F10
Build and runControl+F10
Apply Changes and Restart ActivityControl+Alt+F10
Apply Code Changes
调试 Debugging
Shift+F9
DebugF8
Step overF7
Step intoShift+F7
Smart step intoShift+F8
Step outAlt+F9
Run to cursorAlt+F8
Evaluate expressionF9
Resume programControl+F8
Toggle breakpointControl+Shift+F8
View breakpoints
重构 Refactoring
F5
CopyF6
MoveAlt+Delete
Safe deleteShift+F6
RenameControl+F6
Change signatureControl+Alt+N
InlineControl+Alt+M
Extract methodControl+Alt+V
Extract variableControl+Alt+F
Extract fieldControl+Alt+C
Extract constantControl+Alt+P
Extract parameter
版本管理 Version control / local history
Control+K
Commit project to VCSControl+T
Update project from VCSAlt+Shift+C
View recent changes- Alt+` (backquote) Open VCS popup
参考(官网搬运工):Keyboard shortcuts
本文地址:https://blog.csdn.net/shiguiyou/article/details/107478212