Android Studio keyboard shortcuts

Android Studio is Google's official IDE for Android development, built on the IntelliJ platform. That heritage means world-class refactoring, navigation, and code generation, all reachable from the keyboard. Knowing the shortcuts is what keeps you in flow through the edit-build-deploy loop to emulators and devices. This cheat sheet covers 77 default shortcuts for Windows and Mac.

General

Search EverywhereDouble ShiftDouble Shift
Find ActionCtrl+Shift+ACmd+Shift+A
Show intention actions / quick fixesAlt+EnterOption+Enter
Open SettingsCtrl+Alt+SCmd+,
Generate code (getters, overrides, ...)Alt+InsertCmd+N
Recent filesCtrl+ECmd+E
Recent locationsCtrl+Shift+ECmd+Shift+E
Go to classCtrl+NCmd+O
Go to fileCtrl+Shift+NCmd+Shift+O
Go to symbolCtrl+Alt+Shift+NCmd+Option+O

Editing

Duplicate line or selectionCtrl+DCmd+D
Delete lineCtrl+YCmd+Backspace
Toggle line commentCtrl+/Cmd+/
Toggle block commentCtrl+Shift+/Cmd+Option+/
Move line up/downAlt+Shift+Up/DownOption+Shift+Up/Down
Move statement up/downCtrl+Shift+Up/DownCmd+Shift+Up/Down
Reformat codeCtrl+Alt+LCmd+Option+L
Optimize importsCtrl+Alt+OCtrl+Option+O
Extend selectionCtrl+WOption+Up
Shrink selectionCtrl+Shift+WOption+Down
Join linesCtrl+Shift+JCtrl+Shift+J
UndoCtrl+ZCmd+Z
RedoCtrl+Shift+ZCmd+Shift+Z

Multiple Carets

Add selection for next occurrenceAlt+JCtrl+G
Unselect last occurrenceAlt+Shift+JCtrl+Shift+G
Select all occurrencesCtrl+Alt+Shift+JCtrl+Cmd+G
Add caret with mouseAlt+Shift+ClickOption+Shift+Click

Code Completion & Info

Basic code completionCtrl+SpaceCtrl+Space
Smart type-matching completionCtrl+Shift+SpaceCtrl+Shift+Space
Parameter infoCtrl+PCmd+P
Quick documentationCtrl+QF1
Quick definitionCtrl+Shift+IOption+Space

Navigation

Go to declarationCtrl+BCmd+B
Go to implementationCtrl+Alt+BCmd+Option+B
Go to super method/classCtrl+UCmd+U
Find usagesAlt+F7Option+F7
File structure popupCtrl+F12Cmd+F12
Go to lineCtrl+GCmd+L
Navigate backCtrl+Alt+LeftCmd+[
Navigate forwardCtrl+Alt+RightCmd+]
Go to last edit locationCtrl+Shift+BackspaceCmd+Shift+Backspace
Next highlighted errorF2F2
Previous highlighted errorShift+F2Shift+F2
Type hierarchyCtrl+HCtrl+H

Refactoring

RenameShift+F6Shift+F6
Refactor This menuCtrl+Alt+Shift+TCtrl+T
Extract methodCtrl+Alt+MCmd+Option+M
Extract variableCtrl+Alt+VCmd+Option+V
Extract fieldCtrl+Alt+FCmd+Option+F
Extract constantCtrl+Alt+CCmd+Option+C
Extract parameterCtrl+Alt+PCmd+Option+P
MoveF6F6

Find & Replace

Find in fileCtrl+FCmd+F
Replace in fileCtrl+RCmd+R
Find nextF3Cmd+G
Find previousShift+F3Cmd+Shift+G
Find in path (whole project)Ctrl+Shift+FCmd+Shift+F
Replace in pathCtrl+Shift+RCmd+Shift+R

Run, Build & Debug

Run appShift+F10Ctrl+R
Debug appShift+F9Ctrl+D
Build projectCtrl+F9Cmd+F9
StopCtrl+F2Cmd+F2
Toggle line breakpointCtrl+F8Cmd+F8
View breakpointsCtrl+Shift+F8Cmd+Shift+F8
Step overF8F8
Step intoF7F7
Step outShift+F8Shift+F8
Resume programF9Cmd+Option+R
Run to cursorAlt+F9Option+F9
Evaluate expressionAlt+F8Option+F8

Tool Windows & VCS

Project tool windowAlt+1Cmd+1
TerminalAlt+F12Option+F12
Hide all tool windowsCtrl+Shift+F12Cmd+Shift+F12
Commit changesCtrl+KCmd+K
Push commitsCtrl+Shift+KCmd+Shift+K
Update project (pull)Ctrl+TCmd+T
VCS operations popupAlt+`Ctrl+V

Put your top Android Studio shortcuts on real keys

The five Android Studio actions most worth binding to a physical macropad key:

Shift+F10Ctrl+R Run app Deploying to the emulator is the loop you repeat all day; one physical key removes the friction.
Ctrl+Alt+LCmd+Option+L Reformat code Formatting before every commit becomes a single mechanical tap.
Double ShiftDouble Shift Search Everywhere The universal entry point to files, symbols, and actions deserves hardware access.
Shift+F6Shift+F6 Rename Safe project-wide renames are the refactor you reach for most.
Ctrl+F8Cmd+F8 Toggle line breakpoint Setting and clearing breakpoints repeatedly during debugging is perfect macropad work.

I hand-build small-batch programmable macropads (QMK/VIA) in Barcelona. One press, any shortcut, any app.

See the macropads

Android Studio shortcut FAQs

What is the most important shortcut in Android Studio?
Double Shift (Search Everywhere) and Ctrl+Shift+A / Cmd+Shift+A (Find Action). Between them you can reach any file, symbol, setting, or command without knowing its dedicated shortcut.
How do I run my app on the emulator with the keyboard?
Press Shift+F10 on Windows or Ctrl+R on Mac to build and run the current configuration on the selected device or emulator. Shift+F9 / Ctrl+D does the same with the debugger attached.
How do I auto-format Kotlin or Java code in Android Studio?
Press Ctrl+Alt+L on Windows or Cmd+Option+L on Mac to reformat the file or selection. Ctrl+Alt+O / Ctrl+Option+O cleans up unused imports.
Are Android Studio shortcuts the same as IntelliJ IDEA?
Yes. Android Studio is built on the IntelliJ platform and ships the same default keymap, plus Android-specific run and Logcat tooling. IntelliJ muscle memory transfers directly.
How do I rename a variable or class safely everywhere?
Put the cursor on the symbol and press Shift+F6. The rename refactoring updates every usage across the project, including XML references for Android resources.