Android Studio Keyboard Shortcuts

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

Android Studio Keyboard Shortcuts banner

Search & Navigation (Mac)

Key / CodeDescription
Shift + ShiftSearch everywhere
Cmd + OGo to class
Cmd + Shift + OGo to file
Cmd + Option + OGo to symbol
Cmd + ERecent files
Cmd + BGo to declaration

Search & Navigation (Windows/Linux)

Key / CodeDescription
Shift + ShiftSearch everywhere
Ctrl + NGo to class
Ctrl + Shift + NGo to file
Ctrl + Alt + Shift + NGo to symbol
Ctrl + ERecent files
Ctrl + BGo to declaration

Editing (Mac)

Key / CodeDescription
Cmd + /Line comment
Cmd + Shift + /Block comment
Option + Shift + Up/DownMove line
Cmd + DDuplicate line/selection
Option + EnterShow intention actions
Cmd + Option + LReformat code

Editing (Windows/Linux)

Key / CodeDescription
Ctrl + /Line comment
Ctrl + Shift + /Block comment
Alt + Shift + Up/DownMove line
Ctrl + DDuplicate line/selection
Alt + EnterShow intention actions
Ctrl + Alt + LReformat code

Refactor

Key / CodeDescription
Shift + F6Rename
Cmd/Ctrl + Option/Alt + VExtract variable
Cmd/Ctrl + Option/Alt + MExtract method
Cmd/Ctrl + Option/Alt + CExtract constant

Build & Run

Key / CodeDescription
Ctrl + R (Mac)Run
Ctrl + D (Mac)Debug
Shift + F10Run
Shift + F9Debug
Cmd/Ctrl + F9Build project

Gradle

Key / CodeDescription
Cmd/Ctrl + Shift + AFind Action (type 'Gradle')
Cmd/Ctrl + Shift + F10Run current Gradle task
Cmd/Ctrl + Shift + A → SyncSync 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  # debug
Knowledge is power.