Android Studio Shortcuts
Android Studio Shortcuts
Writing Code
Generate code (getters, setters, constructors, hashCode/equals, toString, new file, new class ) Alt + Insert
Override methods Control + O
Implement methods Control + I
Surround with (if...else / try...catch / etc.) Control + Alt + T
Delete line at caret Control + Y
Collapse/expand current code block Control + minus/plus
Collapse/expand all code blocks Control + Shift + minus/plus
Duplicate current line or selection Control + D
Basic code completion Control + Space
Smart code completion (filters the list of methods and variables by expected type) Control + Shift + Space
Complete statement Control + Shift + Enter
Quick documentation lookup Control + Q
Show parameters for selected method Control + P
Go to declaration (directly) Control + B or Control + Click
Go to implementations Control + Alt + B
Go to super-method/super-class Control + U
Open quick definition lookup Control + Shift + I
Toggle project tool window visibility Alt + 1
Toggle bookmark F11
Toggle bookmark with mnemonic Control + F11
Comment/uncomment with line comment Control + /
Comment/uncomment with block comment Control + Shift + /
Select successively increasing code blocks Control + W
Decrease current selection to previous state Control + Shift + W
Move to code block start Control + [
Move to code block end Control + ]
Select to the code block start Control + Shift + [
Select to the code block end Control + Shift + ]
Delete to end of word Control + Delete
Delete to start of word Control + Backspace
Optimize imports Control + Alt + O
Project quick fix (show intention actions and quick fixes) Alt + Enter
Reformat code Control + Alt + L
Auto-indent lines Control + Alt + I
Indent/unindent lines Tab/Shift + Tab
Smart line join Control + Shift + J
Smart line split Control + Enter
Start new line Shift + Enter
Next/previous highlighted error F2 / Shift + F2
Refactoring
Copy F5
Move F6
Safe delete Alt + Delete
Rename Shift + F6
Change signature Control + F6
Inline Control + Alt + N
Extract method Control + Alt + M
Extract variable Control + Alt + V
Extract field Control + Alt + F
Extract constant Control + Alt + C
Extract parameter Control + Alt + P