collapse all function in vscode code example
Example 1: collapse all code vscode
Use :
Ctrl + K + 0 to fold all
Ctrl + K + J to unfold all
Example 2: collapse all code visual studio
Visual studio
fold all: Ctrl + M + O
unfold all: Ctrl + M + P