visual studio code collapse methods code example
Example 1: 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
Example 2: collapse all code visual studio
Visual studio
fold all: Ctrl + M + O
unfold all: Ctrl + M + P