1

In VS Code, is there a way to fold/unfold only the class methods found in the file?

I'm aware of Collapse all methods in Visual Studio Code but Ctrl + K + 2, or 3 only deal with the code block level and not the semantics of whether it's a method or not.

sw1337
  • 533
  • 4
  • 16

1 Answers1

0

Wouldn't you know it... Just found an extension that does exactly that. Fold To Definitions by Zeev Rotshtein

https://marketplace.visualstudio.com/items?itemName=zeevro.fold-to-definitions

sw1337
  • 533
  • 4
  • 16