Android Studio keyboard shortcuts for Windows, Linux and Mac

Android Studio's default keymap from Android Developers, with one column for Windows and Linux and one for macOS: editor, navigation, refactoring, build and debug keys, plus the Layout Editor, the Navigation Editor, the emulator and Gemini code assistance. The source names no Android Studio release. The IDE is built on IntelliJ IDEA, whose keymap reference covers actions missing here. Start with Shift, Shift, which searches everything, and Ctrl + Shift + A, which finds any action by name.

141 shortcuts in 13 sections. Checked row by row against Android Developers on . Edited by Jay.

General 7

ActionWindows / LinuxMac
Save allCtrl+SCmd+S
SynchronizeCtrl+Alt+YCmd+Option+Y
Add to favoritesAlt+Shift+FOption+Shift+F
Inspect current fileRuns the inspection profile that is currently selected on the open file.Alt+Shift+IOption+Shift+I
Quick switch schemeOne of the bindings that keeps the Control key on macOS.Ctrl+`Ctrl+`
Open settings dialogThe Keymap pane for changing shortcuts sits inside this dialog.Ctrl+Alt+SCmd+,
Open project structure dialogCtrl+Alt+Shift+SCmd+;

Search and navigation 18

ActionWindows / LinuxMac
Search everythingA double press of Shift rather than a chord; the search covers code as well as menu commands.ShiftthenShiftShiftthenShift
Find actionCtrl+Shift+ACmd+Shift+A
Find classAccepts camel-hump initials, paths and a line number; pressed twice, it also lists classes from outside the project.Ctrl+NCmd+O
Find fileEnd the query with a slash to match folders instead of files.Ctrl+Shift+NCmd+Shift+O
Find symbolLooks up a method or a field by its name.Ctrl+Alt+Shift+NCmd+Option+O
FindCtrl+FCmd+F
Find nextOn macOS the F3 key toggles a bookmark, and the search uses a Command chord.F3Cmd+G
Find previousShift+F3Cmd+Shift+G
ReplaceOn macOS the Control version of this chord builds and runs the app, so the modifier matters.Ctrl+RCmd+R
Find in pathCtrl+Shift+FCmd+Shift+F
Go to lineCtrl+GCmd+L
Recent filesThe last accessed file is preselected, and the left column of the popup lists the tool windows.Ctrl+ECmd+E
Recently edited filesCtrl+Shift+ECmd+Shift+E
Last edit locationCtrl+Shift+BackspaceCmd+Shift+Delete
Switch editor tabsAlt+RightorAlt+LeftCtrl+RightorCtrl+Left
Jump to sourceF4orCtrl+EnterF4orCmd+Down
Open tab in new windowDetaches the editor tab that has focus into its own window.Shift+F4Shift+F4
Close active editor tabCtrl+F4Cmd+W

Code navigation 17

ActionWindows / LinuxMac
Go to declarationIn the Layout Editor and the Navigation Editor the keyboard chord opens the XML instead.Ctrl+BorCtrl+ClickCmd+BorCmd+Click
Go to implementationsCtrl+Alt+BCmd+Option+B
Go to supermethod or superclassCtrl+UCmd+U
File structureLists the parts of the open file so you can jump straight to one.Ctrl+F12Cmd+F12
Type hierarchyCtrl+HCtrl+H
Method hierarchyCtrl+Shift+HCmd+Shift+H
Call hierarchyCtrl+Alt+HCtrl+Option+H
Quick documentationCtrl+QCtrl+J
Quick definitionCtrl+Shift+ICmd+Y
Parameter infoShows the parameters that the method under the caret accepts.Ctrl+PCmd+P
Find usagesShows every place where the element under the caret is referenced.Alt+F7Option+F7
Toggle bookmarkThe macOS key is the one that finds the next match on Windows and Linux.F11F3
Toggle bookmark with mnemonicCtrl+F11Option+F3
Go to code block startCtrl+[Cmd+Option+[
Go to code block endCtrl+]Cmd+Option+]
Next highlighted errorF2F2
Previous highlighted errorShift+F2Shift+F2

Code completion and generation 8

Not every macOS binding swaps Control for Command: completion, Override methods, Implement methods, Type hierarchy, Smart line join and the tab switcher use the Control key on both systems.

ActionWindows / LinuxMac
Basic completionA second press in a row widens the list to private and non-imported static members.Ctrl+SpaceCtrl+Space
Smart completionNarrows suggestions by expected type and data flow; pressing it twice adds chained calls.Ctrl+Shift+SpaceCtrl+Shift+Space
Complete statementFills in whatever the line still lacks, such as closing brackets or braces, and formats it.Ctrl+Shift+EnterCmd+Shift+Return
Quick fixOpens the list of intention actions and the fixes on offer.Alt+EnterOption+Return
Generate codeOffers constructors, getters and setters, equals/hashCode and toString, or a new file or class.Alt+InsertCmd+N
Override methodsCtrl+OCtrl+O
Implement methodsCtrl+ICtrl+I
Surround withWraps code in a construct such as if...else or try...catch.Ctrl+Alt+TCmd+Option+T

Editing 22

On macOS the source prints the same chord, Option+Delete, for deleting to the end of a word and to the start of a word. It likewise prints Command+Delete for both Delete line and Safe delete.

ActionWindows / LinuxMac
Line commentA toggle: the same chord removes the comment marker again.Ctrl+/Cmd+/
Block commentA toggle: pressing it again strips the block comment markers.Ctrl+Shift+/Cmd+Shift+/
Duplicate line or selectionOn macOS the Control version of this chord starts a debug session instead.Ctrl+DCmd+D
Delete lineCtrl+YCmd+Delete
Extend selectionEach press widens the selection to the next larger code block.Ctrl+WOption+Up
Shrink selectionSteps the selection back to the smaller range it had before.Ctrl+Shift+WOption+Down
Select to code block startCtrl+Shift+[Cmd+Option+Shift+[
Select to code block endCtrl+Shift+]Cmd+Option+Shift+]
Delete to word endCtrl+DeleteOption+Delete
Delete to word startCtrl+BackspaceOption+Delete
Reformat codeCtrl+Alt+LCmd+Option+L
Auto-indent linesCtrl+Alt+ICtrl+Option+I
Indent linesTabTab
Unindent linesShift+TabShift+Tab
Optimize importsCtrl+Alt+OCtrl+Option+O
Smart line joinCtrl+Shift+JCtrl+Shift+J
Smart line splitCtrl+EnterCmd+Return
Start new lineShift+EnterShift+Return
Collapse code blockFolds the block at the caret; in the design editors this chord zooms out instead.Ctrl+-Cmd+-
Expand code blockUnfolds the block at the caret; in the design editors this chord zooms in instead.Ctrl++Cmd++
Collapse all code blocksCtrl+Shift+-Cmd+Shift+-
Expand all code blocksCtrl+Shift++Cmd+Shift++

Refactoring 11

ActionWindows / LinuxMac
CopyF5F5
MoveF6F6
Safe deleteAlt+DeleteCmd+Delete
RenameShift+F6Shift+F6
Change signatureCtrl+F6Cmd+F6
InlineCtrl+Alt+NCmd+Option+N
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

Build, run and debug 14

ActionWindows / LinuxMac
BuildCtrl+F9Cmd+F9
Build and runThe source also gives this chord as the way to open the Run tool window.Shift+F10Ctrl+R
Apply changes, restart activityCtrl+F10Ctrl+Cmd+R
Apply code changesCtrl+Alt+F10Ctrl+Cmd+Shift+R
DebugListed a second time in the source as the key for the Debug tool window.Shift+F9Ctrl+D
Step overF8F8
Step intoF7F7
Smart step intoShift+F7Shift+F7
Step outShift+F8Shift+F8
Run to cursorAlt+F9Option+F9
Evaluate expressionAlt+F8Option+F8
Resume programF9Cmd+Option+R
Toggle breakpointCtrl+F8Cmd+F8
View breakpointsCtrl+Shift+F8Cmd+Shift+F8

Version control 4

ActionWindows / LinuxMac
Commit project to VCSCtrl+KCmd+K
Update project from VCSCtrl+TCmd+T
View recent changesAlt+Shift+COption+Shift+C
Open VCS dialogAlt+`Ctrl+V

Tool windows 7

The source gives two macOS chords for hiding the tool windows: Command+Shift+F12 in its tool-window table and Control+Command+F12 in its default-keymap table, where the action is called Maximize/minimize editor. This page prints the first.

ActionWindows / LinuxMac
Project tool windowA toggle: the same chord hides the Project window again.Alt+1Cmd+1
Logcat tool windowAlt+6Cmd+6
Version Control tool windowAlt+9Cmd+9
Hide all tool windowsLeaves only the editor on screen; the default keymap table calls this maximizing or minimizing the editor.Ctrl+Shift+F12Cmd+Shift+F12
Return to editorMoves keyboard focus out of a tool window and back into the code.EscEsc
Hide active tool windowHides the tool window that has focus, or the one that had it last.Shift+EscShift+Esc
Switch tabs and tool windowsCtrl+TabCtrl+Tab

Layout Editor 14

ActionWindows / LinuxMac
Toggle Design and Blueprint modesBB
Toggle portrait and landscapeOO
Toggle devicesDD
Force refreshRR
Toggle render errors panelEE
Delete constraintsDeleteorCtrl+ClickDeleteorCmd+Click
Zoom inCtrl++Cmd++
Zoom outCtrl+-Cmd+-
Zoom to fitCtrl+0Cmd+0
Actual sizePrinted in the source under View layouts, next to zoom and fit to screen.Ctrl+Shift+1Cmd+Shift+1
PanHold the key down, then click and move the pointer across the design surface.Space+DragSpace+Drag
Go to XMLCtrl+BCmd+B
Select all componentsCtrl+ACmd+A
Select multiple componentsShift+ClickorCtrl+ClickShift+ClickorCmd+Click

Emulator 6

Emulator shortcuts work only while Send keyboard shortcuts in its General settings pane is set to Emulator controls, which is the default.

ActionWindows / LinuxMac
Open emulator shortcut helpStandalone emulator window only; when embedded in the IDE, the keys are under Running Devices in the Keymap settings.F1Cmd+/
Simulate Menu buttonCtrl+MCmd+M
Open screen recording controlsShows the Record and Playback tab of the Extended Controls window.Ctrl+Shift+RCmd+Shift+R
Pinch and spreadHolding the modifier shows a two-finger overlay: the mouse is one finger and the second mirrors it across an anchor point.Ctrl+DragCmd+Drag
Pan in zoom modeWorks after the Enter zoom mode button has been clicked.Ctrl+Arrow keysCmd+Arrow keys
Tap screen in zoom modeA plain click zooms in while zoom mode is on, so a tap needs the modifier.Ctrl+ClickCmd+Click

AI code assistance 3

ActionWindows / LinuxMac
Open Gemini code promptShows a prompt field in the editor; describe the change, press Enter, then review the diff Gemini proposes.Ctrl+\Cmd+\
Accept AI code suggestionGemini completions show as gray italic text, only at the end of a line or on a blank line.TabTab
Dismiss AI code suggestionRemoves the gray italic completion that Gemini proposed.EscEsc

Notes

Finding things

Shift, Shift — Shift pressed twice — searches everything, code and menus included, and Ctrl + Shift + A finds an action by name; these are the two shortcuts that make the rest of the keymap optional. Ctrl + N finds a class, Ctrl + Shift + N a file (end the query with a slash to match folders), and Ctrl + Alt + Shift + N a method or field by name. Recent files are on Ctrl + E, and Ctrl + Shift + Backspace returns to the last place you edited. On macOS the same actions are Cmd + Shift + A, Cmd + O, Cmd + Shift + O, Cmd + Option + O, Cmd + E and Cmd + Shift + Delete.

Building and running

Ctrl + F9 builds the project and Shift + F10 builds and runs it; Shift + F9 starts a debug session. Ctrl + F10 applies changes and restarts the activity, and Ctrl + Alt + F10 is Apply code changes. In the debugger, F8, F7 and Shift + F8 step over, into and out, Alt + F8 evaluates an expression, and Ctrl + Shift + F8 opens the breakpoints view. The macOS keymap moves several of these: run is Ctrl + R, debug is Ctrl + D, and resume is Cmd + Option + R rather than F9.

Generating code and reading logs

Alt + Enter shows intention actions and quick fixes; Alt + Insert generates constructors, getters, setters, equals/hashCode and toString; Ctrl + O overrides a method and Ctrl + I implements one. Ctrl + Alt + O optimises imports and Ctrl + Alt + L reformats. Alt + 6 opens Logcat (Cmd + 6 on macOS), and once Logcat and the other tool windows have eaten the screen, Ctrl + Shift + F12 hides every one of them; Esc returns focus to the editor from any tool window.

Questions

Are these the same as IntelliJ IDEA shortcuts?

Largely. Android Studio is based on IntelliJ IDEA, and Android Developers points to the IntelliJ IDEA keymap reference for shortcuts beyond its own list. The Android-specific rows here are Apply Changes, the Logcat window, the Layout Editor, the Navigation Editor, the emulator and Gemini.

Which shortcuts trigger Apply Changes?

Ctrl + F10 (Ctrl + Cmd + R on macOS) applies changes and restarts the activity. Ctrl + Alt + F10 (Ctrl + Cmd + Shift + R on macOS) is Apply code changes.

How do I see the app's logs?

Alt + 6 (Cmd + 6 on macOS) opens the Logcat tool window. Esc returns to the editor.

How do I switch to another keymap or change a single shortcut?

Open the settings with Ctrl + Alt + S (Cmd + , on macOS) and go to the Keymap pane. The Keymaps menu switches between preset keymaps; right-clicking an action lets you add or remove keyboard and mouse shortcuts, and editing a preset keymap creates a modified copy of it automatically.

Where are the Android Emulator's own shortcuts listed?

In a standalone emulator window, F1 (Cmd + / on macOS) opens the Help pane of Extended controls with the full list. When the emulator runs embedded in Android Studio, that pane is not available; the keys are under Running Devices in the Keymap settings.

Sources and checks

Every row on this page was matched to a line in the documentation above on . A binding that could not be found there is not listed.

Found a wrong or missing key? Tell us and it gets checked against the source. How we verify describes the process and its limits.