Skip to content

↑↓ moveEnter openEsc close

Fold all: the shortcut in 3 apps

3 apps · Mac, Windows and Linux

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

AppMacWindowsLinux
Visual StudioCollapse or expand all blocks—CtrlM,CtrlL—
Sublime TextFold allCmdK,Cmd1CtrlK,Ctrl1CtrlK,Ctrl1
VS CodeFold all regionsCmdK,Cmd0CtrlK,Ctrl0CtrlK,Ctrl0

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

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