samuelbrody1249
samuelbrody1249

Reputation: 4767

How to group a section of code into a collapsible segment in VS Code

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:

enter image description here

Is there another way to do this in VS Code?

Upvotes: 2

Views: 3600

Answers (1)

JJF
JJF

Reputation: 2777

Region folding plugin will do what you want https://marketplace.visualstudio.com/items?itemName=maptz.regionfolder

Upvotes: 1

Related Questions