Skip to content

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
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments