Skip to content

↑↓ moveEnter openEsc close

Extract method in IntelliJ

IntelliJ 2025.3 · 61 shortcuts · checked Nov 2026 · Source: JetBrains docs

In IntelliJ IDEA, press Cmd+Option+M (Mac), Ctrl+Alt+M (Windows, Linux).

What else uses Option+Cmd+M? · What else uses Ctrl+Alt+M?

More IntelliJ shortcuts: refactoring

ActionMacWindowsLinux
RenameShiftF6ShiftF6ShiftF6
Refactor This menuCtrlTCtrlAltShiftTCtrlAltShiftT
Extract variableOptionCmdVCtrlAltVCtrlAltV
InlineOptionCmdNCtrlAltNCtrlAltN

All 61 IntelliJ shortcuts