Android Studio macOS Shortcuts

117 shortcuts · View all OS →

WindowsmacOSLinuxCompare all
Android Studio macOS keyboard shortcuts
ActionmacOS Shortcut
Build & Run
Build project⌘F9
Run app⌃R
Debug app⌃D
Stop running⌘F2
Run with coverage⌃⇧R
Apply changes⌃⌘R
Sync project with Gradle⌘⇧O(Project)
Save all⌘S
Synchronize files⌥⌘Y
Apply code changes⌃⇧⌘R
Commit project to VCS⌘K
Update project from VCS⌘T
Show recent VCS changes⌥⇧C
Open VCS popup⌃V
Code Editing
Code completion (basic)⌃Space
Code completion (smart)⌃⇧Space
Show intention actions⌥Enter
Reformat code⌘⌥L
Optimize imports⌃⌥O
Duplicate line⌘D
Delete line⌘⌫
Move line up⌥⇧Up
Move line down⌥⇧Down
Comment / uncomment line⌘/
Comment block⌘⇧/
Surround with…⌘⌥T
Complete statement⇧⌘Enter
Inspect file with current profile⌥⇧I
Layout Editor: Design or BlueprintB
Layout Editor: toggle orientationO
Layout Editor: switch deviceD
Layout Editor: force refreshR
Layout Editor: toggle render errorsE
Navigation Editor: nest graph⌘G
Navigation Editor: cycle destinationsTab⇧Tab
Navigation Editor: select all destinations⌘A
Generate code⌘N
Override methods⌃O
Implement methods⌃I
Fold or unfold current code block⌘-⌘+
Fold or unfold all code blocks⇧⌘-⇧⌘+
Quick documentation⌃J
Show method parameters⌘P
Quick definition⌘Y
Expand code selection⌥↑
Shrink code selection⌥↓
Select to code block start⌥⇧⌘[
Select to code block end⌥⇧⌘]
Auto-indent lines⌃⌥I
Indent or unindent linesTab⇧Tab
Smart join lines⌃⇧J
Smart split line⌘Enter
Start new line⇧Enter
Navigation
Search everywhereShiftShift
Go to class⌘O
Go to file⌘⇧O
Go to declaration⌘B
Go to implementation⌘⌥B
Find usages⌥F7
Navigate back⌘[
Navigate forward⌘]
Go to line⌘L
Recent files⌘E
Recently changed files⌘⇧E
Toggle Project tool window⌘1
Open Version Control window⌘9
Return to editorEsc
Add to favorites⌥⇧F
Switch IDE scheme⌃`
Open IDE settings⌘,
Open project structure⌘;
Switch tabs and tool windows⌃Tab
Find in editor⌘F
Find next⌘G
Find previous⇧⌘G
Replace in editor⌘R
Find action⇧⌘A
Search symbol name⌥⌘O
Find in project path⇧⌘F
Show file structure⌘F12
Jump to sourceF4⌘↓
Open editor tab in new window⇧F4
Close editor tab⌘W
Hide active tool window⇧Esc
Show type hierarchy⌃H
Show method hierarchy⇧⌘H
Show call hierarchy⌃⌥H
Fit layout preview to screen⌘0
Actual size in layout preview⇧⌘1
Layout Editor: zoom in⌘+
Layout Editor: zoom out⌘-
Go to super method or class⌘U
Toggle bookmarkF3
Toggle mnemonic bookmark⌥F3
Go to code block start⌥⌘[
Go to code block end⌥⌘]
Next or previous highlighted errorF2⇧F2
Refactoring
Rename⇧F6
Extract variable⌘⌥V
Extract method⌘⌥M
Extract field⌘⌥F
Extract constant⌘⌥C
Inline⌘⌥N
MoveF6
Copy by refactoringF5
Change signature⌘F6
Extract parameter⌥⌘P
Debugging
Toggle breakpoint⌘F8
Step overF8
Step intoF7
Step out⇧F8
Resume program⌘⌥R
Evaluate expression⌥F8
View breakpoints⌘⇧F8
Open Logcat window⌘6
Smart step into⇧F7
Run to cursor⌥F9