Use:
Ctrl + K + 0 to fold all
Ctrl + K + J to unfold all
Mac:
Command + K + 0
Command + K + J
Use:
Ctrl + K + 0 to fold all
Ctrl + K + 1 to fold at indent level 1
Ctrl + K + 2 to fold at indent level 2
...
Ctrl + K + J to unfold all
Mac:
Command + K + 0
Command + K + J
Ctrl+Shift+[ Fold (collapse) region editor.fold
Ctrl+Shift+] Unfold (uncollapse) region editor.unfold
Ctrl+K Ctrl+[ Fold (collapse) all subregions editor.foldRecursively
Ctrl+K Ctrl+] Unfold (uncollapse) all subregions editor.unfoldRecursively
Ctrl+K Ctrl+0 Fold (collapse) all regions editor.foldAll
Ctrl+K Ctrl+J Unfold (uncollapse) all regions
// Fold
Ctrl + K + 0 // fold everything that could be folded
Ctrl + K + 1 // fold just the main branches
// Unfold
Ctrl + K + J // unfold everything
Visual studio
fold all: Ctrl + M + O
unfold all: Ctrl + M + P
Ctrl + K + 0
# Create Manual Folding Range from Selection
Ctrl+K Ctrl+,
# Remove Manual Folding Ranges
Ctrl+K Ctrl+.
Ctrl + K + 0 fold all
Ctrl + K + J unfold all
Ctrl+Shift+[ Fold (collapse) region editor.fold
Ctrl+Shift+] Unfold (uncollapse) region editor.unfold
Ctrl+K Ctrl+[ Fold (collapse) all subregions editor.foldRecursively
Ctrl+K Ctrl+] Unfold (uncollapse) all subregions editor.unfoldRecursively
Ctrl+K Ctrl+0 Fold (collapse) all regions editor.foldAll
Ctrl+K Ctrl+J Unfold (uncollapse) all regions
Ctrl + K + 3 to collapse all methods in a class in vscode
Alt + 0