androidstudio4maccheatsheet icon indicating copy to clipboard operation
androidstudio4maccheatsheet copied to clipboard

Most useful keyboard shortcuts with default keymap in Android Studio.

Android Studio for Mac Cheat sheet

This project is discontinued as a much better project is available here : http://www.developerphil.com/android-studio-tips-of-the-day-roundup-1/


Most useful keyboard shortcuts with default keymap in Android Studio.

Quick fixes / Must knows

Action Keys Context
Quick fix ⌥ ENTER
Organize import ⌃ ⌥ O
Indent lines ⌃ ⌥ I
Reformat code ⌥ ⌘ L
New Class ⌘ N Project tab
Generate code ⌘ N Java File
Show docs ⌃ Q
Action look-up ⇧ ⌘ A
Run ⌃ R

Navigation

Action Keys Context
Open class ⌘ O
Open file ⇧ ⌘ O
Go to line ⌘ L
Go to declaration ⌘ B
Go to implementation ⌥ ⌘ B
Go to type declaration ⌃ ⇧ B
Go to super ⌘ U
Go to test ⇧ ⌘ T
Go backward ⌥ ⌘ ←
Go forward ⌥ ⌘ →

Refactoring

Action Keys Context
General refactor ⌃ T
Rename ⇧ F6
Extract Variable ⌥ ⌘ V
Extract Field ⌥ ⌘ F
Extract Constant ⌥ ⌘ C
Extract Parameter ⌥ ⌘ P
Extract Method ⌥ ⌘ M

Code generation

Action Keys Context
Generate code ⌘ N Java File
Insert template ⌘ J
Surround with ⌥ ⌘ T

Search

Action Keys Context
Search everywhere ⇧ ⇧
Find usages ⌥ F7
Search in file ⌘ F
Search in path ⇧ ⌘ F
Replace in file ⌘ R
Replace in path ⇧ ⌘ R

Edition

Action Keys Context
Move line up ⇧ ⌥ ↑
Move line down ⇧ ⌥ ↓
Move statement up ⇧ ⌘ ↑
Move statement down ⇧ ⌘ ↓
Delete line ⌘ ⌫

Git / SCM

Action Keys Context
View changes ⇧ 9
View diff ⌘ D In changes tab