Expand selection: the shortcut in 5 apps
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.
| App | Mac | Windows | Linux |
|---|---|---|---|
| IntelliJExtend the selection | Option↑ | CtrlW | CtrlW |
| PyCharmExtend the selection | Option↑ | CtrlW | CtrlW |
| Sublime TextExpand the selection to brackets | CtrlShiftM | CtrlShiftM | CtrlShiftM |
| VS CodeExpand selection | CtrlShiftCmd→ | AltShift→ | AltShift→ |
| WebStormExtend the selection | Option↑ | CtrlW | CtrlW |
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.