Full Stack LAMP - MEAN Developer, Python developer. Certified Azure Developer. Freelance programmer/consultant/trainer.

How do I Collapse and Expand functions in Visual Studio Code

  • 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

Leave a Reply