How to collapse code sections in VS Code
Jul 13, 2020
๐ค Problem
How do you fold code sections in Visual Studio Code?
โ Solution
โ + k + 0 : Fold all levels
โ + k + 1 : Level 1 (Namespace)
โ + k + 2 : Level 2 (Class)
โ + k + 3 : Level 3 (Methods)
โ + k + 4 : Level 4 (Blocks)
โ + k + 4 : Level 4 (Blocks)
โ + k + [ or ] : Current cursor block
โ + k + j : Unfold
Share on Twitter
Give this page a share if you found it useful ๐

I'm Wes. I live in Boston and work on Wonderment.