Thursday, September 24, 2015

Android Studio Shortcuts

Navigation Shortcuts

Shortcut DescriptionAndroid Studio Shortcut
Go to classCtrl + N
Go to fileCtrl + Shift + N
Navigate open tabsALT + Left-Arrow; ALT + Right-Arrow
Lookup recent filesCTRL + E
Go to lineCTRL + G
Navigate to last edit locationCTRL + SHIFT + BACKSPACE
Go to declarationCTRL + B
Go to implementationCTRL + ALT + B
Go to sourceF4
Go to super ClassCTRL + U
Show Call hierarchyCtrl + Alt + H
Search in path/projectCTRL + SHIFT + F

Programming Shortcuts

Shortcut DescriptionAndroid Studio Shortcut
Reformat codeCTRL + ALT + L
Optimize importsCTRL + ALT + O
Code CompletionCTRL + SPACE
Issue quick fixALT + ENTER
Surround code blockCTRL + ALT + T
Rename and refactorShift + F6
Line Comment or UncommentCTRL + /
Block Comment or UncommentCTRL + SHIFT + /
Go to previous/next methodALT + UP/DOWN
Show parameters for methodCTRL + P
Quick documentation lookupCTRL + Q

General Shortcuts

Shortcut DescriptionAndroid Studio Shortcut
Delete lineCTRL + Y
Safe DeleteAlt + DELETE
Close Active TabCTRL + F4
Build and runSHIFT + F10
BuildCTRL + F9
All purpose (Meta)ShortcutCTRL + SHIFT + A