minecraftplayer1234
minecraftplayer1234

Reputation: 2227

Unfold all sections in selected section

So in Visual Studio, if I have a collapsed function code, when I unfold it, it also unfolds all the ifs, switches 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

Answers (3)

Wagner D. F.
Wagner D. F.

Reputation: 23

You can cut CTRL+X and paste CTRL+V the to unfold the selection.

Upvotes: 0

XAronX
XAronX

Reputation: 118

Select the section and try ctrl + shift + «

Or check the unfold key command in Keyboard Shortcuts

Upvotes: 0

Mark
Mark

Reputation: 182551

Try Ctrl-K Ctrl-] recursive unfolding when the cursor is on the function to unfold.

Upvotes: 15

Related Questions