visual studio code expand collapse all shortcut key code example
Example 1: collapse vscode key
ctrl + 0 to 9 : "to collaapsse level"
ctrl + j : "to Fold all"
Example 2: visual studio code collapse all
// Fold
Ctrl + K + 0 // fold everything that could be folded
Ctrl + K + 1 // fold just the main branches
// Unfold
Ctrl + K + J // unfold everything