Android Studio Shortcuts for Mac

Keyboard shortcuts for Android Studio on Mac. Covers tool windows, code navigation, refactoring, and debugging for building Android apps on macOS.
Key label style

Tool windows

Project
Cmd+1
Version Control
Cmd+9
Run
Ctrl+R
Debug
Ctrl+D
Logcat
Cmd+6
Return to Editor
Esc
Hide All Tool Windows
Cmd+Shift+F12

Code completion

Basic CompletionShows suggestions for variables, types, methods, and expressions. Calling it twice in a row shows more results, including private members.
Ctrl+Space
Smart CompletionShows relevant options based on context, expected type, and data flow. Calling it twice in a row shows more results, including chains.
Ctrl+Shift+Space
Statement CompletionCompletes the current statement, adding missing parentheses, brackets, braces, and formatting.
Cmd+Shift+Return
Perform quick fixes and show intention actions
Opt+Return

General actions

Save all
Cmd+S
Synchronize
Cmd+Opt+Y
Maximize/minimize editor
Cmd+Ctrl+F12
Add to favorites
Opt+Shift+F
Inspect current file with current profile
Opt+Shift+I
Quick switch scheme
Ctrl+`
Open settings dialog
Cmd+,
Open project structure dialog
Cmd+;
Switch between tabs and tool window
Ctrl+Tab

View layouts

Zoom in/out
Cmd+=
or
Cmd+-
Fit to screen
Cmd+0
Actual size
Cmd+Shift+1

Design tools: Layout Editor

Toggle between Design and Blueprint modes
B
Toggle between Portrait and Landscape modes
O
Toggle devices
D
Force refresh
R
Toggle render errors panel
E
Delete constraints
Fwd Del
or
Cmd+Click
Zoom in
Cmd+=
Zoom out
Cmd+-
Zoom to fit
Cmd+0
PanHold Space, then click and drag.
Space+Drag
Go to XML
Cmd+B
Select all components
Cmd+A
Select multiple components
Shift+Click
or
Cmd+Click

Design tools: Navigation Editor

Zoom in
Cmd+=
Zoom out
Cmd+-
Zoom to fit
Cmd+0
PanHold Space, then click and drag.
Space+Drag
Go to XML
Cmd+B
Toggle render errors panel
E
Group into nested graph
Cmd+G
Cycle through destinations
Tab
or
Shift+Tab
Select all destinations
Cmd+A
Select multiple destinations
Shift+Click
or
Cmd+Click

Write code

Generate code (getters, setters, constructors, hashCode/equals, toString, new file, new class)
Cmd+N
Override methods
Ctrl+O
Implement methods
Ctrl+I
Surround with (if...else, try...catch, etc.)
Cmd+Opt+T
Delete line at caret
Cmd+Fwd Del
Collapse/expand current code block
Cmd+-
or
Cmd+=
Collapse/expand all code blocks
Cmd+Shift+-
or
Cmd+Shift+=
Duplicate current line or selection
Cmd+D
Basic code completion
Ctrl+Space
Smart code completion (filters the list of methods and variables by expected type)
Ctrl+Shift+Space
Complete statement
Cmd+Shift+Return
Quick documentation lookup
Ctrl+J
Show parameters for selected method
Cmd+P
Go to declaration (directly)
Cmd+B
or
Cmd+Click
Go to implementations
Cmd+Opt+B
Go to supermethod/superclass
Cmd+U
Open quick definition lookup
Cmd+Y
Toggle project tool window visibility
Cmd+1
Toggle bookmark
F3
Toggle bookmark with mnemonic
Opt+F3
Comment/uncomment with line comment
Cmd+/
Comment/uncomment with block comment
Cmd+Shift+/
Select successively increasing code blocks
Opt+Up
Decrease current selection to previous state
Opt+Down
Move to code block start
Cmd+Opt+[
Move to code block end
Cmd+Opt+]
Select to the code block start
Cmd+Opt+Shift+[
Select to the code block end
Cmd+Opt+Shift+]
Delete to end of word
Opt+Fwd Del
Delete to start of word
Opt+Fwd Del
Optimize imports
Ctrl+Opt+O
Project quick fix (show intention actions and quick fixes)
Opt+Return
Reformat code
Cmd+Opt+L
Auto-indent lines
Ctrl+Opt+I
Indent/unindent lines
Tab
or
Shift+Tab
Smart line join
Ctrl+Shift+J
Smart line split
Cmd+Return
Start new line
Shift+Return
Next/previous highlighted error
F2
or
Shift+F2

Build and run

Build
Cmd+F9
Build and run
Ctrl+R
Apply changes and restart activity
Cmd+Ctrl+R
Apply code changes
Cmd+Ctrl+Shift+R

Debug

Debug
Ctrl+D
Step over
F8
Step into
F7
Smart step into
Shift+F7
Step out
Shift+F8
Run to cursor
Opt+F9
Evaluate expression
Opt+F8
Resume program
Cmd+Opt+R
Toggle breakpoint
Cmd+F8
View breakpoints
Cmd+Shift+F8

Refactor

Copy
F5
Move
F6
Safe delete
Cmd+Fwd Del
Rename
Shift+F6
Change signature
Cmd+F6
Inline
Cmd+Opt+N
Extract method
Cmd+Opt+M
Extract variable
Cmd+Opt+V
Extract field
Cmd+Opt+F
Extract constant
Cmd+Opt+C
Extract parameter
Cmd+Opt+P

Version control/local history

Commit project to VCS
Cmd+K
Update project from VCS
Cmd+T
View recent changes
Opt+Shift+C
Open VCS dialog
Ctrl+V

Intro

Android Studio on Mac uses Command for tool windows and most editing commands, but Run and Debug use Control instead, since Command already owns those keys at the system level.

Mac-specific shortcut notes

Tool windows use Cmd. Cmd+1 opens Project, Cmd+9 opens Version Control, Cmd+6 opens Logcat.

Run and Debug use Control, not Command. Control+R runs the app and Control+D debugs it, macOS already claims Command+R and Command+D system-wide.

Search everything with a double Shift tap. Pressing Shift twice opens a box that searches code, files, classes, symbols, and menu actions at once.

Layout Editor shortcuts skip modifiers. B, O, D, R, and E switch modes and toggle panels with a single keypress, no Cmd or Option needed.

Printable PDF

The Android Studio Mac shortcut list is available as a printable PDF. The tool window and code navigation shortcuts are the ones worth learning first.

FAQ

Need more than shortcuts?
Visit the Android Studio app page for an overview and helpful links.

Want to suggest a new app, report a bug, or get help? Email us at info@hkeys.app.

For anything else or just a quick hello, write to us at info@hkeys.app.