Skip to content

↑↓ moveEnter openEsc close

Expand selection: the shortcut in 5 apps

5 apps · Mac, Windows and Linux

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

AppMacWindowsLinux
IntelliJExtend the selectionOption↑CtrlWCtrlW
PyCharmExtend the selectionOption↑CtrlWCtrlW
Sublime TextExpand the selection to bracketsCtrlShiftMCtrlShiftMCtrlShiftM
VS CodeExpand selectionCtrlShiftCmd→AltShift→AltShift→
WebStormExtend the selectionOption↑CtrlWCtrlW

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+↑ in IntelliJ, PyCharm and WebStorm; Ctrl+Shift+M in Sublime Text; Ctrl+Shift+Cmd+→ in VS Code.
  • Windows: Ctrl+W in IntelliJ, PyCharm and WebStorm; Ctrl+Shift+M in Sublime Text; Shift+Alt+→ in VS Code.
  • Linux: Ctrl+W in IntelliJ, PyCharm and WebStorm; Ctrl+Shift+M in Sublime Text; Shift+Alt+→ in VS Code.

Learn it by pressing it: IntelliJ shortcuts practice, PyCharm shortcuts practice, Sublime Text shortcuts practice, VS Code shortcuts practice or WebStorm shortcuts practice.