Reputation: 4767
I have about 50 lines of C code that I want to collapse. It's at the top-level, containing globals, typedefs, defines, etc. The only way I've figured out how to do this is by making a fake function, for example:
Is there another way to do this in VS Code?
Upvotes: 2
Views: 3600
Reputation: 2777
Region folding plugin will do what you want https://marketplace.visualstudio.com/items?itemName=maptz.regionfolder
Upvotes: 1