| Tool windows |
|---|
| Open the Project tool window | Alt 1 | Cmd 1 | Alt 1 |
| Open the Version Control tool window | Alt 9 | Cmd 9 | Alt 9 |
| Open the Run tool window | Shift F10 | Control R | Shift F10 |
| Open the Debug tool window | Shift F9 | Control D | Shift F9 |
| Open the Logcat tool window | Alt 6 | Cmd 6 | Alt 6 |
| Return focus to the editor | Esc | Esc | Esc |
| Hide all tool windows | Control Shift F12 | Cmd Shift F12 | Control Shift F12 |
| General IDE actions |
|---|
| Save all | Control S | Cmd S | Control S |
| Synchronize | Control Alt Y | Cmd Option Y | Control Alt Y |
| Maximize or minimize the editor | Control Shift F12 | Control Cmd F12 | Control Shift F12 |
| Add the selected item to Favorites | Alt Shift F | Option Shift F | Alt Shift F |
| Inspect the current file with the current profile | Alt Shift I | Option Shift I | Alt Shift I |
| Open Quick Switch Scheme | Control ` | Control ` | Control ` |
| Open the Settings dialog | Control Alt S | Cmd , | Control Alt S |
| Open Project Structure | Control Alt Shift S | Cmd ; | Control Alt Shift S |
| Switch between tabs and tool windows | Control Tab | Control Tab | Control Tab |
| Navigation and search |
|---|
| Search everywhere, including code and menus | Shift Shift | Shift Shift | Shift Shift |
| Find in the current context | Control F | Cmd F | Control F |
| Find the next match | F3 | Cmd G | F3 |
| Find the previous match | Shift F3 | Cmd Shift G | Shift F3 |
| Replace in the current context | Control R | Cmd R | Control R |
| Find an IDE action | Control Shift A | Cmd Shift A | Control Shift A |
| Search by symbol name | Control Alt Shift N | Cmd Option O | Control Alt Shift N |
| Find a class | Control N | Cmd O | Control N |
| Find a file | Control Shift N | Cmd Shift O | Control Shift N |
| Find in path | Control Shift F | Cmd Shift F | Control Shift F |
| Open the current file structure | Control F12 | Cmd F12 | Control F12 |
| Move to the previous open editor tab | Alt Left | Control Left | Alt Left |
| Move to the next open editor tab | Alt Right | Control Right | Alt Right |
| Open the current editor tab in a new window | Shift F4 | Shift F4 | Shift F4 |
| Open recently used files | Control E | Cmd E | Control E |
| Open recently edited files | Control Shift E | Cmd Shift E | Control Shift E |
| Go to the last edit location | Control Shift Backspace | Cmd Shift Delete | Control Shift Backspace |
| Close the active editor tab | Control F4 | Cmd W | Control F4 |
| Hide the active or last active tool window | Shift Esc | Shift Esc | Shift Esc |
| Go to a line | Control G | Cmd L | Control G |
| Open the type hierarchy | Control H | Control H | Control H |
| Open the method hierarchy | Control Shift H | Cmd Shift H | Control Shift H |
| Open the call hierarchy | Control Alt H | Control Option H | Control Alt H |
| Jump to source | F4 or Control Enter | F4 or Cmd Down | F4 or Control Enter |
| Layout and Navigation editors |
|---|
| Zoom in within a visual layout | Control + | Cmd + | Control + |
| Zoom out within a visual layout | Control - | Cmd - | Control - |
| Fit a visual layout to the available space | Control 0 | Cmd 0 | Control 0 |
| Show a visual layout at actual size | Control Shift 1 | Cmd Shift 1 | Control Shift 1 |
| Toggle Layout Editor Design and Blueprint modes | B | B | B |
| Toggle portrait and landscape modes | O | O | O |
| Toggle Layout Editor devices | D | D | D |
| Force a Layout Editor refresh | R | R | R |
| Toggle the Layout Editor render-errors panel | E | E | E |
| Delete selected constraints | Delete | Delete | Delete |
| Zoom in within the Layout Editor | Control + | Cmd + | Control + |
| Zoom out within the Layout Editor | Control - | Cmd - | Control - |
| Zoom the Layout Editor to fit | Control 0 | Cmd 0 | Control 0 |
| Go from the Layout Editor to XML | Control B | Cmd B | Control B |
| Select all Layout Editor components | Control A | Cmd A | Control A |
| Zoom in within the Navigation Editor | Control + | Cmd + | Control + |
| Zoom out within the Navigation Editor | Control - | Cmd - | Control - |
| Zoom the Navigation Editor to fit | Control 0 | Cmd 0 | Control 0 |
| Go from the Navigation Editor to XML | Control B | Cmd B | Control B |
| Toggle the Navigation Editor render-errors panel | E | E | E |
| Group selected destinations into a nested graph | Control G | Cmd G | Control G |
| Cycle forward through destinations | Tab | Tab | Tab |
| Cycle backward through destinations | Shift Tab | Shift Tab | Shift Tab |
| Select all Navigation Editor destinations | Control A | Cmd A | Control A |
| Code generation and editing |
|---|
| Generate code | Alt Insert | Cmd N | Alt Insert |
| Override methods | Control O | Control O | Control O |
| Implement methods | Control I | Control I | Control I |
| Surround the selection with a language construct | Control Alt T | Cmd Option T | Control Alt T |
| Delete the line at the caret | Control Y | Cmd Delete | Control Y |
| Duplicate the current line or selection | Control D | Cmd D | Control D |
| Show basic code completion | Control Space | Control Space | Control Space |
| Show smart code completion | Control Shift Space | Control Shift Space | Control Shift Space |
| Complete the current statement | Control Shift Enter | Cmd Shift Enter | Control Shift Enter |
| Open quick documentation | Control Q | Control J | Control Q |
| Show parameters for the selected method | Control P | Cmd P | Control P |
| Go to the declaration | Control B | Cmd B | Control B |
| Go to implementations | Control Alt B | Cmd Option B | Control Alt B |
| Go to the supermethod or superclass | Control U | Cmd U | Control U |
| Open quick definition | Control Shift I | Cmd Y | Control Shift I |
| Toggle the Project tool window | Alt 1 | Cmd 1 | Alt 1 |
| Toggle a bookmark | F11 | F3 | F11 |
| Toggle a bookmark with a mnemonic | Control F11 | Option F3 | Control F11 |
| Comment or uncomment with a line comment | Control / | Cmd / | Control / |
| Comment or uncomment with a block comment | Control Shift / | Cmd Shift / | Control Shift / |
| Select successively larger code blocks | Control W | Option Up | Control W |
| Shrink the selection to its previous state | Control Shift W | Option Down | Control Shift W |
| Move to the start of the code block | Control [ | Option Cmd [ | Control [ |
| Move to the end of the code block | Control ] | Option Cmd ] | Control ] |
| Select through the start of the code block | Control Shift [ | Option Cmd Shift [ | Control Shift [ |
| Select through the end of the code block | Control Shift ] | Option Cmd Shift ] | Control Shift ] |
| Delete through the end of the word | Control Delete | Option Delete | Control Delete |
| Delete through the start of the word | Control Backspace | Option Delete | Control Backspace |
| Optimize imports | Control Alt O | Control Option O | Control Alt O |
| Show intention actions and quick fixes | Alt Enter | Option Enter | Alt Enter |
| Reformat code | Control Alt L | Cmd Option L | Control Alt L |
| Auto-indent lines | Control Alt I | Control Option I | Control Alt I |
| Indent lines | Tab | Tab | Tab |
| Unindent lines | Shift Tab | Shift Tab | Shift Tab |
| Join lines intelligently | Control Shift J | Control Shift J | Control Shift J |
| Split the current line intelligently | Control Enter | Cmd Enter | Control Enter |
| Start a new line | Shift Enter | Shift Enter | Shift Enter |
| Collapse or expand the current code block | Control - or Control + | Cmd - or Cmd + | Control - or Control + |
| Collapse or expand all code blocks | Control Shift - or Control Shift + | Cmd Shift - or Cmd Shift + | Control Shift - or Control Shift + |
| Move to the next or previous highlighted error | F2 or Shift F2 | F2 or Shift F2 | F2 or Shift F2 |
| Build and run |
|---|
| Build the project | Control F9 | Cmd F9 | Control F9 |
| Build and run | Shift F10 | Control R | Shift F10 |
| Apply changes and restart the activity | Control F10 | Control Cmd R | Control F10 |
| Apply code changes | Control Alt F10 | Control Cmd Shift R | Control Alt F10 |
| Debugging |
|---|
| Debug the selected configuration | Shift F9 | Control D | Shift F9 |
| Step over | F8 | F8 | F8 |
| Step into | F7 | F7 | F7 |
| Smart step into | Shift F7 | Shift F7 | Shift F7 |
| Step out | Shift F8 | Shift F8 | Shift F8 |
| Run to the cursor | Alt F9 | Option F9 | Alt F9 |
| Evaluate an expression | Alt F8 | Option F8 | Alt F8 |
| Resume the program | F9 | Cmd Option R | F9 |
| Toggle a breakpoint | Control F8 | Cmd F8 | Control F8 |
| View breakpoints | Control Shift F8 | Cmd Shift F8 | Control Shift F8 |
| Refactoring |
|---|
| Copy a code element | F5 | F5 | F5 |
| Move a code element | F6 | F6 | F6 |
| Safely delete a code element | Alt Delete | Cmd Delete | Alt Delete |
| Rename a code element | Shift F6 | Shift F6 | Shift F6 |
| Change a method signature | Control F6 | Cmd F6 | Control F6 |
| Inline the selected element | Control Alt N | Cmd Option N | Control Alt N |
| Extract a method | Control Alt M | Cmd Option M | Control Alt M |
| Extract a variable | Control Alt V | Cmd Option V | Control Alt V |
| Extract a field | Control Alt F | Cmd Option F | Control Alt F |
| Extract a constant | Control Alt C | Cmd Option C | Control Alt C |
| Extract a parameter | Control Alt P | Cmd Option P | Control Alt P |
| Version control and local history |
|---|
| Commit the project to version control | Control K | Cmd K | Control K |
| Update the project from version control | Control T | Cmd T | Control T |
| View recent changes | Alt Shift C | Option Shift C | Alt Shift C |
| Open the version-control operations popup | Alt ` | Control V | Alt ` |