← Useful Tips
VS CodeVscode

VS Code: Collapse all code regions

Use Ctrl + K, ardından Ctrl + 0 to collapse all code regions in a large file. It keeps your hands on the keyboard while navigating large codebases.

Ctrl+K, then Ctrl+0

Why it helps

Use Ctrl + K, ardından Ctrl + 0 to collapse all code regions in a large file. It keeps your hands on the keyboard while navigating large codebases.

How to use it

  1. Open the relevant app or terminal.
  2. Use the shortcut or command above in the relevant context.
  3. Check the result; for commands that change data, test on a small example first.
People also search for
VS Code: Collapse all code regionsCtrl+K, then Ctrl+0collapse all code regionshow to collapse all code regionsVS Code collapse all code regions

Related tips