Skip to content

↑↓ moveEnter openEsc close

Surround with: the shortcut in 4 apps

4 apps · Mac, Windows and Linux

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.

AppMacWindowsLinux
IntelliJSurround withOptionCmdTCtrlAltTCtrlAltT
Visual StudioSurround with a snippet—CtrlK,CtrlS—
PyCharmSurround with (if, try, with)OptionCmdTCtrlAltTCtrlAltT
WebStormSurround with a templateOptionCmdJCtrlAltJCtrlAltJ

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: 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.