vs code collapse curren block
Fold folds the innermost uncollapsed region at the cursor:
Ctrl + Shift + [ on Windows and Linux
⌥ + ⌘ + [ on macOS
Unfold unfolds the collapsed region at the cursor:
Ctrl + Shift + ] on Windows and Linux
⌥ + ⌘ + ] on macOS
Fold All folds all regions in the editor:
Ctrl + (K => 0) (zero) on Windows and Linux
⌘ + (K => 0) (zero) on macOS
Unfold All unfolds all regions in the editor:
Ctrl + (K => J) on Windows and Linux
⌘ + (K => J) on macOS