Android Studio Keyboard Shortcuts
A deep shortcuts guide for Android Studio: navigation, editing, refactor, debugging, and Gradle.

Search & Navigation (Mac)
| Key / Code | Description |
|---|---|
| Shift + Shift | Search everywhere |
| Cmd + O | Go to class |
| Cmd + Shift + O | Go to file |
| Cmd + Option + O | Go to symbol |
| Cmd + E | Recent files |
| Cmd + B | Go to declaration |
Search & Navigation (Windows/Linux)
| Key / Code | Description |
|---|---|
| Shift + Shift | Search everywhere |
| Ctrl + N | Go to class |
| Ctrl + Shift + N | Go to file |
| Ctrl + Alt + Shift + N | Go to symbol |
| Ctrl + E | Recent files |
| Ctrl + B | Go to declaration |
Editing (Mac)
| Key / Code | Description |
|---|---|
| Cmd + / | Line comment |
| Cmd + Shift + / | Block comment |
| Option + Shift + Up/Down | Move line |
| Cmd + D | Duplicate line/selection |
| Option + Enter | Show intention actions |
| Cmd + Option + L | Reformat code |
Editing (Windows/Linux)
| Key / Code | Description |
|---|---|
| Ctrl + / | Line comment |
| Ctrl + Shift + / | Block comment |
| Alt + Shift + Up/Down | Move line |
| Ctrl + D | Duplicate line/selection |
| Alt + Enter | Show intention actions |
| Ctrl + Alt + L | Reformat code |
Refactor
| Key / Code | Description |
|---|---|
| Shift + F6 | Rename |
| Cmd/Ctrl + Option/Alt + V | Extract variable |
| Cmd/Ctrl + Option/Alt + M | Extract method |
| Cmd/Ctrl + Option/Alt + C | Extract constant |
Build & Run
| Key / Code | Description |
|---|---|
| Ctrl + R (Mac) | Run |
| Ctrl + D (Mac) | Debug |
| Shift + F10 | Run |
| Shift + F9 | Debug |
| Cmd/Ctrl + F9 | Build project |
Gradle
| Key / Code | Description |
|---|---|
| Cmd/Ctrl + Shift + A | Find Action (type 'Gradle') |
| Cmd/Ctrl + Shift + F10 | Run current Gradle task |
| Cmd/Ctrl + Shift + A → Sync | Sync project with Gradle files |
Pro Workflow
Common flow: navigate → refactor → reformat → run → debug.
Shift + Shift # search
Alt/Option + Enter # quick fix
Cmd/Ctrl + Alt/Option + L # format
Shift + F10 # run
Shift + F9 # debugKnowledge is power.