Reputation: 2227
So in Visual Studio, if I have a collapsed function code, when I unfold it, it also unfolds all the if
s, switch
es etc. inside of it.
In Visual Studio Code, however, if I go for Fold All (Ctrl+K Ctrl+0
) then if I wanna quickly check one function (i.e unfolding it by mouse click on the cross near line numbers), it unfolds the function but it doesn't go recursively, making me unfold every other if
/else
or case
.
Is there a way to make this work the way I would expect it?
Upvotes: 11
Views: 2160
Reputation: 23
You can cut CTRL+X and paste CTRL+V the to unfold the selection.
Upvotes: 0
Reputation: 118
Select the section and try ctrl
+ shift
+ «
Or check the unfold key command in Keyboard Shortcuts
Upvotes: 0
Reputation: 182551
Try Ctrl-K Ctrl-] recursive unfolding when the cursor is on the function to unfold.
Upvotes: 15