Keyboard Commands
The following tables list keyboard shortcuts for common operations.
Note: This section lists Android Studio keyboard shortcuts for the default keymap. To change the default keymap on Windows and Linux, go to File > Settings > Keymap. If you're using Mac OS X, update your keymap to use the Mac OS X 10.5+ version keymaps under Android Studio > Preferences > Keymap.
Action | Android Studio Key Command |
---|---|
Command look-up (autocomplete command name) | CTRL + SHIFT + A |
Project quick fix | ALT + ENTER |
Reformat code | CTRL + ALT + L (Win) OPTION + CMD + L (Mac) |
Show docs for selected API | CTRL + Q (Win) F1 (Mac) |
Show parameters for selected method | CTRL + P |
Generate method | ALT + Insert (Win) CMD + N (Mac) |
Jump to source | F4 (Win) CMD + down-arrow (Mac) |
Delete line | CTRL + Y (Win) CMD + Backspace (Mac) |
Search by symbol name | CTRL + ALT + SHIFT + N (Win) OPTION + CMD + O (Mac) |
Action | Android Studio Key Command |
---|---|
Build | CTRL + F9 (Win) CMD + F9 (Mac) |
Build and run | SHIFT + F10 (Win) CTRL + R (Mac) |
Toggle project visibility | ALT + 1 (Win) CMD + 1 (Mac) |
Navigate open tabs | ALT + left-arrow; ALT + right-arrow (Win) CTRL + left-arrow; CTRL + right-arrow (Mac) |
For a complete keymap reference guide, see the IntelliJ IDEA documentation.