Skip to the main content

Android Studio

Extract a variable

CmdOptionV

Mac Desktop app Android Studio default keymap

Practice this

In Android Studio, Ctrl + Alt + V will extract a variable. On a Mac, press Cmd + Option + V instead.

Where it works: Refactoring

Every documented variant

Variants of this shortcut
System Environment Keys
Mac Desktop app CmdOptionV
Windows Desktop app CtrlAltV

Where this comes from

Keyboard shortcuts - Android Studio - Android Developers

Documentation checked on 2026-09-14. That is a documentation review, not a test run inside the application.

Report a correction