# Android Studio keyboard shortcuts (Mac)

> The most used Android Studio shortcuts on Mac: Find Action (⇧⌘A), Quick fix / intention actions (⌥↩), Basic code completion (⌃Space), Reformat code (⌥⌘L), Go to declaration (⌘B). This page lists all 48, from the official documentation.

- Source: [Google · developer.android.com](https://developer.android.com/studio/intro/keyboard-shortcuts?hl=en), retrieved November 19, 2026 (2026-11-19)
- Page: https://www.modandkey.com/androidstudio-keyboard-shortcuts/mac
- Also: [Windows](https://www.modandkey.com/md/androidstudio-keyboard-shortcuts.md), [Linux](https://www.modandkey.com/md/androidstudio-keyboard-shortcuts/linux.md), [de](https://www.modandkey.com/md/de/androidstudio-tastenkombinationen/mac.md), [es](https://www.modandkey.com/md/es/atajos-de-teclado-androidstudio/mac.md), [fr](https://www.modandkey.com/md/fr/raccourcis-clavier-androidstudio/mac.md), [it](https://www.modandkey.com/md/it/scorciatoie-tastiera-androidstudio/mac.md)
- Unofficial reference. Not affiliated with Google.

## General & tool windows

| Command | Shortcut |
|---|---|
| Save all | ⌘S |
| Settings | ⌘, |
| Project Structure | ⌘; |
| Project window | ⌘1 |
| Version Control window | ⌘9 |
| Logcat window | ⌘6 |
| Hide all tool windows | ⇧⌘F12 |

## Navigate & search

| Command | Shortcut |
|---|---|
| Find Action | ⇧⌘A |
| Go to class | ⌘O |
| Go to file | ⇧⌘O |
| Go to symbol | ⌥⌘O |
| Find in path | ⇧⌘F |
| Find usages | ⌥F7 |
| Recent files | ⌘E |
| File structure | ⌘F12 |
| Go to line | ⌘L |
| Last edit location | ⇧⌘⌫ |
| Close editor tab | ⌘W |

## Write code

| Command | Shortcut |
|---|---|
| Quick fix / intention actions | ⌥↩ |
| Basic code completion | ⌃Space |
| Complete statement | ⇧⌘↩ |
| Generate code | ⌘N |
| Reformat code | ⌥⌘L |
| Optimize imports | ⌃⌥O |
| Comment with line comment | ⌘/ |
| Duplicate line or selection | ⌘D |
| Delete line | ⌘⌫ |
| Quick documentation | ⌃J |
| Go to declaration | ⌘B |
| Go to implementations | ⌥⌘B |
| Extend selection | ⌥↑ |

## Build, run & debug

| Command | Shortcut |
|---|---|
| Build project | ⌘F9 |
| Build and run | ⌃R |
| Apply changes and restart activity | ⌃⌘R |
| Debug | ⌃D |
| Step over | F8 |
| Step into | F7 |
| Step out | ⇧F8 |
| Run to cursor | ⌥F9 |
| Evaluate expression | ⌥F8 |
| Resume program | ⌥⌘R |
| Toggle breakpoint | ⌘F8 |

## Refactor & version control

| Command | Shortcut |
|---|---|
| Rename | ⇧F6 |
| Extract method | ⌥⌘M |
| Extract variable | ⌥⌘V |
| Commit project to VCS | ⌘K |
| View recent changes | ⌥⇧C |
| VCS operations popup | ⌃V |
