Fold all: the shortcut in 3 apps
Each app binds this differently. The table shows the keys in Visual Studio, Sublime Text and VS Code side by side.
| App | Mac | Windows | Linux |
|---|---|---|---|
| Visual StudioCollapse or expand all blocks | — | CtrlM,CtrlL | — |
| Sublime TextFold all | CmdK,Cmd1 | CtrlK,Ctrl1 | CtrlK,Ctrl1 |
| VS CodeFold all regions | CmdK,Cmd0 | CtrlK,Ctrl0 | CtrlK,Ctrl0 |
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.