Skip to content

↑↓ moveEnter openEsc close

Extract method: the shortcut in 5 apps

5 apps · Mac, Windows and Linux

On Mac it is usually Option+Cmd+M (2 of 4 apps); on Windows it is usually Ctrl+Alt+M (3 of 5 apps); on Linux it is usually Ctrl+Alt+M (3 of 4 apps). The table shows where each app agrees and where it differs.

AppMacWindowsLinux
EclipseExtract methodOptionShiftMAltShiftMAltShiftM
IntelliJExtract methodOptionCmdMCtrlAltMCtrlAltM
Visual StudioExtract method—CtrlR,CtrlM—
PyCharmExtract methodOptionCmdMCtrlAltMCtrlAltM
WebStormExtract functionOptionCmdMCtrlAltMCtrlAltM

Small screen: your system's keys only. Open an app's row for every system.

A dash means the app has no default binding, or does not run, on that system. Open a row for notes and the full key details.

How the apps compare

  • Mac: Option+Cmd+M in PyCharm and WebStorm; Option+Shift+M in Eclipse; Cmd+Option+M in IntelliJ.
  • Windows: Ctrl+Alt+M in IntelliJ, PyCharm and WebStorm; Alt+Shift+M in Eclipse; Ctrl+R Ctrl+M in Visual Studio.
  • Linux: Ctrl+Alt+M in IntelliJ, PyCharm and WebStorm; Alt+Shift+M in Eclipse.

Learn it by pressing it: Eclipse shortcuts practice, IntelliJ shortcuts practice, Visual Studio shortcuts practice, PyCharm shortcuts practice or WebStorm shortcuts practice.