General 7
| Action | Windows / Linux | Mac |
|---|---|---|
| Save all | Ctrl+S | Cmd+S |
| Synchronize | Ctrl+Alt+Y | Cmd+Option+Y |
| Add to favorites | Alt+Shift+F | Option+Shift+F |
| Inspect current fileRuns the inspection profile that is currently selected on the open file. | Alt+Shift+I | Option+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+S | Cmd+, |
| Open project structure dialog | Ctrl+Alt+Shift+S | Cmd+; |
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.
| Action | Windows / Linux | Mac |
|---|---|---|
| Basic completionA second press in a row widens the list to private and non-imported static members. | Ctrl+Space | Ctrl+Space |
| Smart completionNarrows suggestions by expected type and data flow; pressing it twice adds chained calls. | Ctrl+Shift+Space | Ctrl+Shift+Space |
| Complete statementFills in whatever the line still lacks, such as closing brackets or braces, and formats it. | Ctrl+Shift+Enter | Cmd+Shift+Return |
| Quick fixOpens the list of intention actions and the fixes on offer. | Alt+Enter | Option+Return |
| Generate codeOffers constructors, getters and setters, equals/hashCode and toString, or a new file or class. | Alt+Insert | Cmd+N |
| Override methods | Ctrl+O | Ctrl+O |
| Implement methods | Ctrl+I | Ctrl+I |
| Surround withWraps code in a construct such as if...else or try...catch. | Ctrl+Alt+T | Cmd+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.
| Action | Windows / Linux | Mac |
|---|---|---|
| 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+D | Cmd+D |
| Delete line | Ctrl+Y | Cmd+Delete |
| Extend selectionEach press widens the selection to the next larger code block. | Ctrl+W | Option+Up |
| Shrink selectionSteps the selection back to the smaller range it had before. | Ctrl+Shift+W | Option+Down |
| Select to code block start | Ctrl+Shift+[ | Cmd+Option+Shift+[ |
| Select to code block end | Ctrl+Shift+] | Cmd+Option+Shift+] |
| Delete to word end | Ctrl+Delete | Option+Delete |
| Delete to word start | Ctrl+Backspace | Option+Delete |
| Reformat code | Ctrl+Alt+L | Cmd+Option+L |
| Auto-indent lines | Ctrl+Alt+I | Ctrl+Option+I |
| Indent lines | Tab | Tab |
| Unindent lines | Shift+Tab | Shift+Tab |
| Optimize imports | Ctrl+Alt+O | Ctrl+Option+O |
| Smart line join | Ctrl+Shift+J | Ctrl+Shift+J |
| Smart line split | Ctrl+Enter | Cmd+Return |
| Start new line | Shift+Enter | Shift+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 blocks | Ctrl+Shift+- | Cmd+Shift+- |
| Expand all code blocks | Ctrl+Shift++ | Cmd+Shift++ |
Refactoring 11
| Action | Windows / Linux | Mac |
|---|---|---|
| Copy | F5 | F5 |
| Move | F6 | F6 |
| Safe delete | Alt+Delete | Cmd+Delete |
| Rename | Shift+F6 | Shift+F6 |
| Change signature | Ctrl+F6 | Cmd+F6 |
| Inline | Ctrl+Alt+N | Cmd+Option+N |
| Extract method | Ctrl+Alt+M | Cmd+Option+M |
| Extract variable | Ctrl+Alt+V | Cmd+Option+V |
| Extract field | Ctrl+Alt+F | Cmd+Option+F |
| Extract constant | Ctrl+Alt+C | Cmd+Option+C |
| Extract parameter | Ctrl+Alt+P | Cmd+Option+P |
Build, run and debug 14
| Action | Windows / Linux | Mac |
|---|---|---|
| Build | Ctrl+F9 | Cmd+F9 |
| Build and runThe source also gives this chord as the way to open the Run tool window. | Shift+F10 | Ctrl+R |
| Apply changes, restart activity | Ctrl+F10 | Ctrl+Cmd+R |
| Apply code changes | Ctrl+Alt+F10 | Ctrl+Cmd+Shift+R |
| DebugListed a second time in the source as the key for the Debug tool window. | Shift+F9 | Ctrl+D |
| Step over | F8 | F8 |
| Step into | F7 | F7 |
| Smart step into | Shift+F7 | Shift+F7 |
| Step out | Shift+F8 | Shift+F8 |
| Run to cursor | Alt+F9 | Option+F9 |
| Evaluate expression | Alt+F8 | Option+F8 |
| Resume program | F9 | Cmd+Option+R |
| Toggle breakpoint | Ctrl+F8 | Cmd+F8 |
| View breakpoints | Ctrl+Shift+F8 | Cmd+Shift+F8 |
Version control 4
| Action | Windows / Linux | Mac |
|---|---|---|
| Commit project to VCS | Ctrl+K | Cmd+K |
| Update project from VCS | Ctrl+T | Cmd+T |
| View recent changes | Alt+Shift+C | Option+Shift+C |
| Open VCS dialog | Alt+` | 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.
| Action | Windows / Linux | Mac |
|---|---|---|
| Project tool windowA toggle: the same chord hides the Project window again. | Alt+1 | Cmd+1 |
| Logcat tool window | Alt+6 | Cmd+6 |
| Version Control tool window | Alt+9 | Cmd+9 |
| Hide all tool windowsLeaves only the editor on screen; the default keymap table calls this maximizing or minimizing the editor. | Ctrl+Shift+F12 | Cmd+Shift+F12 |
| Return to editorMoves keyboard focus out of a tool window and back into the code. | Esc | Esc |
| Hide active tool windowHides the tool window that has focus, or the one that had it last. | Shift+Esc | Shift+Esc |
| Switch tabs and tool windows | Ctrl+Tab | Ctrl+Tab |
Layout Editor 14
| Action | Windows / Linux | Mac |
|---|---|---|
| Toggle Design and Blueprint modes | B | B |
| Toggle portrait and landscape | O | O |
| Toggle devices | D | D |
| Force refresh | R | R |
| Toggle render errors panel | E | E |
| Delete constraints | DeleteorCtrl+Click | DeleteorCmd+Click |
| Zoom in | Ctrl++ | Cmd++ |
| Zoom out | Ctrl+- | Cmd+- |
| Zoom to fit | Ctrl+0 | Cmd+0 |
| Actual sizePrinted in the source under View layouts, next to zoom and fit to screen. | Ctrl+Shift+1 | Cmd+Shift+1 |
| PanHold the key down, then click and move the pointer across the design surface. | Space+Drag | Space+Drag |
| Go to XML | Ctrl+B | Cmd+B |
| Select all components | Ctrl+A | Cmd+A |
| Select multiple components | Shift+ClickorCtrl+Click | Shift+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.
| Action | Windows / Linux | Mac |
|---|---|---|
| Open emulator shortcut helpStandalone emulator window only; when embedded in the IDE, the keys are under Running Devices in the Keymap settings. | F1 | Cmd+/ |
| Simulate Menu button | Ctrl+M | Cmd+M |
| Open screen recording controlsShows the Record and Playback tab of the Extended Controls window. | Ctrl+Shift+R | Cmd+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+Drag | Cmd+Drag |
| Pan in zoom modeWorks after the Enter zoom mode button has been clicked. | Ctrl+Arrow keys | Cmd+Arrow keys |
| Tap screen in zoom modeA plain click zooms in while zoom mode is on, so a tap needs the modifier. | Ctrl+Click | Cmd+Click |
AI code assistance 3
| Action | Windows / Linux | Mac |
|---|---|---|
| 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. | Tab | Tab |
| Dismiss AI code suggestionRemoves the gray italic completion that Gemini proposed. | Esc | Esc |
No row on this page matches that filter.
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
- Android Developers — Android Studio user guide: Keyboard shortcuts (page updated 2026-03-06) Both columns of the IDE, Layout Editor and Navigation Editor rows
- Android Developers — Run apps on the Android Emulator Emulator: Menu button, pinch gesture and zoom mode keys
- Android Developers — Android Emulator: Extended controls, settings, and help Emulator: the Help pane that lists its shortcuts
- Android Developers — Android Emulator: Record the screen Emulator: screen recording controls
- Android Developers — Gemini in Android Studio: AI code completion Accepting and clearing AI completions
- Android Developers — Gemini in Android Studio: Transform code The in-editor Gemini prompt
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.