Android Studio Keyboard Shortcut for Windows and Linux (PDF Download)

Android studio is a great IDE for android app development. This is the most useful IDE for android development. If you are using a Windows or Linux machine then this article will be very helpful for you. Here is the list of android studio keyboard shortcuts for Windows and Linux operating systems.


General use

WorkKeyboard Shortcut
Save allControl+S
SynchronizeControl+Alt+Y
Maximize/minimize editorControl+Shift+F12
Add to favoritesAlt+Shift+F
Inspect current file with the current profileAlt+Shift+I
Quick switch schemeControl+` (backquote)
Open settings dialogueControl+Alt+S
Open project structure dialogControl+Alt+Shift+S
Switch between tabs and tool windowControl+Tab

Navigating and searching within Studio

WorkKeyboard Shortcut
Search everything(including code and menus)Press Shift twice
FindControl+F
Find nextF3
Find previousShift+F3
ReplaceControl+R
Find actionControl+Shift+A
Search by symbol nameControl+Alt+Shift+N
Find classControl+N
Find file(instead of class)Control+Shift+N
Find in pathControl+Shift+F
Open file structure pop-upControl+F12
Navigate between open editor tabsAlt+Right Arrow or Left Arrow
Jump to sourceF4 or Control+Enter
Open current editor tab in new windowShift+F4
Recently opened files pop-upControl+E
Recently edited files pop-upControl+Shift+E
Go to last edit locationControl+Shift+Backspace
Close active editor tabControl+F4
Return to editor window from a tool windowEsc
Hide active or last active tool windowShift+Esc
Go to lineControl+G
Open type hierarchyControl+H
Open method hierarchyControl+Shift+H
Open call hierarchyControl+Alt+H

Viewing layouts

WorkKeyboard Shortcut
Zoom in/outControl+plus or Control+minus
Fit to screenControl+0
Actual sizeControl+Shift+1

Design tools: Layout Editor

WorkKeyboard Shortcut
Toggle between Design and Blueprint modesB
Toggle between Portrait and Landscape modesO
Toggle devicesD
Force refreshR
Toggle render errors panelE
Delete constraintsDelete or Control+click
Zoom inControl+plus
Zoom outControl+minus
Zoom to fitControl+0
PanHold Space+click and drag
Go to XMLControl+B
Select all componentsControl+A
Select multiple componentsShift+click or Control+click

Design tools: Navigation Editor

WordKeyboard Shortcut
Zoom inControl+plus
Zoom outControl+minus
Zoom to fitControl+0
PanHold Space+click and drag
Go to XMLControl+B
Toggle render errors panelE
Group into a nested graphControl+G
Cycle through destinationsTab or Shift+Tab
Select all destinationsControl+A
Select multiple destinationsShift+click or Control+click

Writing code

WorkKeyboard Shortcut
Generate code(getters,setters,constructors,hashCode/equals,toString,new file,new class)Alt+Insert
Override methodsControl+O
Implement methodsControl+I
Surround with(if...else / try...catch /etc.)Control+Alt+T
Delete line at caretControl+Y
Collapse/expand current code blockControl+minus or Control+plus
Collapse/expand all code blocksControl+Shift+minus or Control+Shift+plus
Duplicate current line or selectionControl+D
Basic code completionControl+Space
Smart code completion
(filters the list of methods and variables by expected type)
Control+Shift+Space
Complete statementControl+Shift+Enter
Quick documentation lookupControl+Q
Show parameters for selected methodControl+P
Go to declaration(directly)Control+B or Control+click
Go to implementationsControl+Alt+B
Go to super-method/super-classControl+U
Open quick definition lookupControl+Shift+I
Toggle project tool window visibilityAlt+1
Toggle bookmarkF11
Toggle bookmark with mnemonicControl+F11
Comment/uncomment with line commentControl+/
Comment/uncomment with block commentControl+Shift+/
Select successively increasing code blocksControl+W
Decrease current selection to previous stateControl+Shift+W
Move to code block startControl+[
Move to code block endControl+]
Select to the code block startControl+Shift+[
Select to the code block endControl+Shift+]
Delete to end of wordControl+Delete
Delete to start of wordControl+Backspace
Optimize importsControl+Alt+O
Project quick fix(show intention actions and quick fixes)Alt+Enter
Reformat codeControl+Alt+L
Auto-indent linesControl+Alt+I
Indent/unindent linesTab or Shift+Tab
Smart line joinControl+Shift+J
Smart line splitControl+Enter
Start new lineShift+Enter
Next/previous highlighted errorF2 or Shift+F2

Build and run

WorkKeyboard Shortcut
BuildControl+F9
Build and runShift+F10
Apply Changes and Restart ActivityControl+F10
Apply Code ChangesControl+Alt+F10

Debugging

WorkKeyboard Shortcut
DebugShift+F9
Step overF8
Step intoF7
Smart step intoShift+F7
Step outShift+F8
Run to cursorAlt+F9
Evaluate expressionAlt+F8
Resume programF9
Toggle breakpointControl+F8
View breakpointsControl+Shift+F8

Refactoring

WorkKeyboard Shortcut
CopyF5
MoveF6
Safe deleteAlt+Delete
RenameShift+F6
Change signatureControl+F6
InlineControl+Alt+N
Extract methodControl+Alt+M
Extract variableControl+Alt+V
Extract fieldControl+Alt+F
Extract constantControl+Alt+C
Extract parameterControl+Alt+P

Version control / local history

WorkKeyboard Shortcut
Commit project to VCSControl+K
Update project from VCSControl+T
View recent changesAlt+Shift+C
Open VCS popupAlt+` (backquote)

Here is the PDF Download link. Print this pdf and stick it near your workstation. This will help you save time and it will make your development speed fast. Subscribe to our newsletter to get all new updates. If you use VS code then read more about VS Code Keyboard Shortcuts For Windows, Linux.

Post a Comment (0)
Previous Post Next Post