Android Studio Keyboard shortcuts
|
Description
|
|
Keyboard Shortcuts For (Mac) Operating Systems |
|---|---|---|
| Save all | Command+S | |
| Synchronize | Command+Option+Y | |
| Maximize/minimize editor | Control+Command+F12 | |
| Add to favorites | Option+Shift+F | |
| Inspect current file with current profile | Option+Shift+I | |
| Quick switch scheme | Control+` (backquote) | |
| Open settings dialogue | Command+, (comma) | |
| Open project structure dialog | Command+; (semicolon) | |
| Switch between tabs and tool window | Control+Tab |
Navigating and searching within Studio
|
Search everything (including code and menus)
|
Press Shift twice | |
| Find | Command+F | |
| Find next | Command+G | |
| Find previous | Command+Shift+G | |
| Replace | Command+R | |
| Find action | Command+Shift+A | |
| Search by symbol name | Command+Option+O | |
| Find class | Command+O | |
| Find file (instead of class) | Command+Shift+O | |
| Find in path | Command+Shift+F | |
| Open file structure pop-up | Command+F12 | |
| Navigate between open editor tabs | Control+Right Arrow or Control+Left Arrow | |
| Jump to source | F4 or Command+Down Arrow | |
| Open current editor tab in new window | Shift+F4 | |
| Recently opened files pop-up | Command+E | |
| Recently edited files pop-up | Command+Shift+E | |
| Go to last edit location | Command+Shift+Delete | |
| Close active editor tab | Command+W | |
| Return to editor window from a tool window |
Esc
|
|
| Hide active or last active tool window | Shift+Esc | |
| Go to line | Command+L | |
| Open type hierarchy | Control+H | |
| Open method hierarchy | Command+Shift+H | |
| Open call hierarchy | Control+Option+H |
Viewing layouts
| Zoom in/out | Command+plus or Command+minus | |
| Fit to screen | Command+0 | |
| Actual size | Command+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 | Delete or Command+click | |
| Zoom in | Command+plus | |
| Zoom out | Command+minus | |
| Zoom to fit | Command+0 | |
| Pan | Hold Space+click and drag | |
| Go to XML | Command+B | |
| Select all components | Command+A | |
| Select multiple components | Shift+click or Command+click |
Design tools: Navigation Editor
| Zoom in | Command+plus | |
| Zoom out | Command+minus | |
| Zoom to fit | Command+0 | |
| Pan | Hold Space+click and drag | |
| Go to XML | Command+B | |
| Toggle render errors panel | E | |
| Group into nested graph | Command+G | |
| Cycle through destinations | Tab or Shift+Tab | |
| Select all destinations | Command+A | |
| Select multiple destinations | Shift+click or Command+click |
Writing code
|
Generate code (getters, setters, constructors, hashCode/equals, toString, new file, new class) |
Command+N | |
| Override methods | Control+O | |
| Implement methods | Control+I | |
| Surround with (if...else / try...catch / etc.) | Command+Option+T | |
| Delete line at caret | Command+Delete | |
| Collapse/expand current code block | Command+minus or Command+plus | |
| Collapse/expand all code blocks | Command+Shift+minus or Command+Shift+plus | |
| Duplicate current line or selection | Command+D | |
| Basic code completion | Control+Space | |
|
Smart code completion (filters the list of methods and variables by expected type) |
Control+Shift+Space | |
| Complete statement | Command+Shift+Enter | |
| Quick documentation lookup | Control+J | |
| Show parameters for selected method | Command+P | |
|
Go to declaration (directly)
|
Command+B or Command+click | |
| Go to implementations | Command+Option+B | |
| Go to super-method/super-class | Command+U | |
| Open quick definition lookup | Command+Y | |
| Toggle project tool window visibility | Command+1 | |
| Toggle bookmark | F3 | |
| Toggle bookmark with mnemonic | Option+F3 | |
| Comment/uncomment with line comment | Command+/ | |
| Comment/uncomment with block comment | Command+Shift+/ | |
| Select successively increasing code blocks | Option+Up | |
| Decrease current selection to previous state | Option+Down | |
| Move to code block start | Option+Command+[ | |
| Move to code block end | Option+Command+] | |
| Select to the code block start | Option+Command+Shift+[ | |
|
Select to the code block end
|
Option+Command+Shift+] | |
| Delete to end of word | Option+Delete | |
| Delete to start of word | Option+Delete | |
| Optimize imports | Control+Option+O | |
|
Project quick fix (show intention actions and quick fixes) |
Option+Enter | |
| Reformat code | Command+Option+L | |
| Auto-indent lines | Control+Option+I | |
| Indent/unindent lines | Tab or Shift+Tab | |
| Smart line join | Control+Shift+J | |
| Smart line split | Command+Enter | |
| Start new line | Shift+Enter | |
| Next/previous highlighted error | F2 or Shift+F2 |
Build and run
| Build | Command+F9 | |
| Build and run | Control+R | |
| Apply Changes and Restart Activity | Control+Command+R | |
| Apply Code Changes | Control+Shift+Command+R |
Debugging
| Debug | Control+D | |
| Step over | F8 | |
| Step into | F7 | |
| Smart step into | Shift+F7 | |
| Step out | Shift+F8 | |
| Run to cursor | Option+F9 | |
| Evaluate expression | Option+F8 | |
| Resume program | Command+Option+R | |
| Toggle breakpoint | Command+F8 | |
| View breakpoints | Command+Shift+F8 |
Refactoring
| Copy | F5 | |
| Move | F6 | |
| Safe delete | Command+Delete | |
| Rename | Shift+F6 | |
| Change signature | Command+F6 | |
| Inline | Command+Option+N | |
| Extract method | Command+Option+M | |
| Extract variable | Command+Option+V | |
| Extract field | Command+Option+F | |
| Extract constant | Command+Option+C | |
| Extract parameter | Command+Option+P |
Version control / local history
| Commit project to VCS | Command+K | |
| Update project from VCS | Command+T | |
| View recent changes | Option+Shift+C | |
| Open VCS popup | Control+V |
