Android Studio Keyboard Shortcuts
Keyboard shortcut reference for Android Studio on MacWindowsLinux.
General
| Action | Shortcut |
|---|---|
| Search Everywhere | ShiftShiftShiftShiftShiftShift |
| Find Action | CmdShiftACtrlShiftACtrlShiftA |
| Open Settings / Preferences | Cmd,CtrlAltSCtrlAltS |
| Recent Files | CmdECtrlECtrlE |
| Toggle Full Screen | CtrlCmdFF11F11 |
| Save All | CmdSCtrlSCtrlS |
| Open Terminal | AltF12AltF12AltF12 |
| Quick Documentation | F1CtrlQCtrlQ |
Editing
| Action | Shortcut |
|---|---|
| Duplicate Line or Selection | CmdDCtrlDCtrlD |
| Delete Line | CmdBackspaceCtrlYCtrlY |
| Move Line Up | AltShiftUpAltShiftUpAltShiftUp |
| Move Line Down | AltShiftDownAltShiftDownAltShiftDown |
| Comment Line | Cmd/Ctrl/Ctrl/ |
| Block Comment | CmdShift/CtrlShift/CtrlShift/ |
| Expand Selection | AltUpCtrlWCtrlW |
| Shrink Selection | AltDownCtrlShiftWCtrlShiftW |
| Basic Code Completion | CtrlSpaceCtrlSpaceCtrlSpace |
| Show Intention Actions (quick fixes) | AltEnterAltEnterAltEnter |
| Reformat Code | CmdAltLCtrlAltLCtrlAltL |
| Optimize Imports | CtrlAltOCtrlAltOCtrlAltO |
Refactoring & Code Generation
| Action | Shortcut |
|---|---|
| Rename | ShiftF6ShiftF6ShiftF6 |
| Extract Method | CmdAltMCtrlAltMCtrlAltM |
| Extract Variable | CmdAltVCtrlAltVCtrlAltV |
| Refactor This (menu) | CtrlTCtrlAltShiftTCtrlAltShiftT |
| Generate Code (constructors, getters) | CmdNAltInsertAltInsert |
| Override Methods | CtrlOCtrlOCtrlO |
| Implement Methods | CtrlICtrlICtrlI |
| Surround With | CmdAltTCtrlAltTCtrlAltT |
| Insert Live Template | CmdJCtrlJCtrlJ |
Run, Debug & Build
| Action | Shortcut |
|---|---|
| Run app | CtrlRShiftF10ShiftF10 |
| Debug app | CtrlDShiftF9ShiftF9 |
| Make Project (build) | CmdF9CtrlF9CtrlF9 |
| Apply Changes and Restart Activity | CtrlCmdRCtrlF10CtrlF10 |
| Step Over | F8F8F8 |
| Step Into | F7F7F7 |
| Step Out | ShiftF8ShiftF8ShiftF8 |
| Resume Program | CmdAltRF9F9 |
| Toggle Breakpoint | CmdF8CtrlF8CtrlF8 |
Tool Windows
| Action | Shortcut |
|---|---|
| Project window | Cmd1Alt1Alt1 |
| Logcat window | Cmd6Alt6Alt6 |
| Version Control window | Cmd9Alt9Alt9 |
| Hide all tool windows | CmdShiftF12CtrlShiftF12CtrlShiftF12 |
| Recent Files popup | CmdECtrlECtrlE |
Find & Replace
| Action | Shortcut |
|---|---|
| Find | CmdFCtrlFCtrlF |
| Replace | CmdRCtrlRCtrlR |
| Find in Path | CmdShiftFCtrlShiftFCtrlShiftF |
| Replace in Path | CmdShiftRCtrlShiftRCtrlShiftR |
| Find Next | CmdGF3F3 |
Version Control
| Action | Shortcut |
|---|---|
| Commit | CmdKCtrlKCtrlK |
| Push | CmdShiftKCtrlShiftKCtrlShiftK |
| Update Project (pull) | CmdTCtrlTCtrlT |
| Show Diff | CmdDCtrlDCtrlD |
| VCS Operations Popup | CtrlVAlt`Alt` |
No shortcuts found. Try a different search term.
Frequently Asked Questions
What's the keyboard shortcut to run an app in Android Studio?
Press Ctrl+R on Mac or Shift+F10 on Windows and Linux to run your app on the selected device or emulator. To debug instead, press Ctrl+D on Mac or Shift+F9 on Windows and Linux. To rebuild without running, use Make Project — Cmd+F9 on Mac, Ctrl+F9 on Windows and Linux.
Does Android Studio use the same keyboard shortcuts as IntelliJ IDEA?
Yes. Android Studio is built on JetBrains IntelliJ IDEA, so it inherits the full IntelliJ keymap — navigation, refactoring, code completion, and editing shortcuts are identical. Android Studio adds its own shortcuts on top for Android-specific tasks like running on a device, opening Logcat, and applying code changes. If you know IntelliJ, you already know most of Android Studio.
How do I open Logcat in Android Studio with the keyboard?
Press Cmd+6 on Mac or Alt+6 on Windows and Linux to toggle the Logcat tool window. Logcat shows real-time logs from your connected device or emulator, which is essential for debugging. Press the same shortcut again to hide it, or Cmd/Ctrl+Shift+F12 to hide all tool windows and maximize the editor.
What is Search Everywhere in Android Studio?
Press Shift twice quickly to open Search Everywhere — a single search box that finds classes, files, symbols, actions, and settings all at once. It's the fastest way to jump anywhere in your project or trigger any IDE action without remembering a specific shortcut. Find Action (Cmd/Ctrl+Shift+A) is the narrower version that searches only commands and settings.
How do I reformat code in Android Studio?
Press Cmd+Alt+L on Mac or Ctrl+Alt+L on Windows and Linux to reformat the current file according to your code style settings. Add Optimize Imports (Ctrl+Alt+O on all platforms) to remove unused imports and sort the rest. Both work on a selection if you have text highlighted, or the whole file if you don't.
Can I use Android Studio keyboard shortcuts on Mac, Windows, and Linux?
Yes — Android Studio runs on all three platforms. Mac uses Cmd-based shortcuts while Windows and Linux use Ctrl-based ones, but the layout is otherwise consistent. You can switch keymaps entirely under Settings → Keymap, where presets exist for macOS, Visual Studio, Eclipse, and others if you're migrating from a different editor.
How do I apply code changes without rebuilding in Android Studio?
Use Apply Changes — Ctrl+Cmd+R on Mac or Ctrl+F10 on Windows and Linux — to push code and resource changes to a running app and restart the current activity, without a full rebuild and reinstall. It's much faster than a clean run during iterative UI work, though some changes (like modifying the manifest) still require a full redeploy.