Surround with: the shortcut in 4 apps
On Windows it is usually Ctrl+Alt+T (2 of 4 apps); on Linux it is usually Ctrl+Alt+T (2 of 3 apps). The table shows where each app agrees and where it differs.
| App | Mac | Windows | Linux |
|---|---|---|---|
| IntelliJSurround with | OptionCmdT | CtrlAltT | CtrlAltT |
| Visual StudioSurround with a snippet | — | CtrlK,CtrlS | — |
| PyCharmSurround with (if, try, with) | OptionCmdT | CtrlAltT | CtrlAltT |
| WebStormSurround with a template | OptionCmdJ | CtrlAltJ | CtrlAltJ |
How the apps compare
- Mac: Cmd+Option+T in IntelliJ; Option+Cmd+T in PyCharm; Option+Cmd+J in WebStorm.
- Windows: Ctrl+Alt+T in IntelliJ and PyCharm; Ctrl+K Ctrl+S in Visual Studio; Ctrl+Alt+J in WebStorm.
- Linux: Ctrl+Alt+T in IntelliJ and PyCharm; Ctrl+Alt+J in WebStorm.
Learn it by pressing it: IntelliJ shortcuts practice, Visual Studio shortcuts practice, PyCharm shortcuts practice or WebStorm shortcuts practice.