Search by tag: macos
1 article
Android Studio shortcuts on macOS
This post will serve as a memo for the most useful shortcuts in Android Studio, running on macOS.
I use the IdeaVim plugin, which may cause conflicts with the default shortcuts. Thus, some of my shortcuts could be different from yours. Android Studio allows the remapping of all its features (or almost ?) in Settings => Keymap
Navigation / Error handling
- F2 – Jump to the next error or warning in the file.
Refactoring
- Shift + F6 – Rename the selected symbol (class, method, variable, etc.).
- ⌘ T – Open the Refactor submenu (same as right‑click → Refactor).
- ⌥ ⌘ P – Introduce a parameter to a function/method declaration.
- ⌥ ⌘ M – Extract the selected code into a new function.
- ⌥ ⌘ V – Extract the selected expression into a new variable.
- ⌥ ⌘ F – Extract the selected expression into a new property (field).
- ⌥ ⌘ N – Inline a property (replace its usages with the underlying expression).
Editing / Moving code
- ⌥ ↑ / ⌥ ↓ – Extend the current selection upward or downward (expand selection).
- ⌥ ⇧ ↑ / ⌥ ⇧ ↓ – Move the current line (or selected block) up or down.
- ⌥ ⇧ Click – Add additional cursors at each click location (multiple‑cursor editing).
General movement
- F6 – Move the selected element (e.g., a file or a UI component) to a new location.
