Skip to content

↑↓ moveEnter openEsc close

Toggle fold: the shortcut in 3 apps

3 apps · Mac, Windows and Linux

Each app binds this differently. The table shows the keys in IntelliJ, Visual Studio and VS Code side by side.

AppMacWindowsLinux
IntelliJExpand or collapse a blockCmd=orCmd-Ctrl=orCtrl-Ctrl=orCtrl-
Visual StudioCollapse or expand the block—CtrlM,CtrlM—
VS CodeToggle foldCmdK,CmdLCtrlK,CtrlLCtrlK,CtrlL

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+= in IntelliJ; Cmd+K Cmd+L in VS Code.
  • Windows: Ctrl+= in IntelliJ; Ctrl+M Ctrl+M in Visual Studio; Ctrl+K Ctrl+L in VS Code.
  • Linux: Ctrl+= in IntelliJ; Ctrl+K Ctrl+L in VS Code.

Learn it by pressing it: IntelliJ shortcuts practice, Visual Studio shortcuts practice or VS Code shortcuts practice.