Ky James
Ky James

Reputation: 115

Is there a shortcut to collapse all functions/methods in VS Code

I'm tired of collapsing all my long functions individually and was wondering if there's a shortcut on VS Code to collapse all folding text?

Upvotes: 7

Views: 19364

Answers (2)

Satyam Raj
Satyam Raj

Reputation: 343

You can press ctrl + K + 0 one after the other.

Upvotes: 13

Fra
Fra

Reputation: 39

For me, now, to collapse all functions is:

Ctrl + K Ctrl + 0

Look for updated full list in Visual Studio Code / Help / Keyboard Shortcuts Reference

Upvotes: 2

Related Questions