-
Notifications
You must be signed in to change notification settings - Fork 6
Description
VS Code has the nice feature of being able to create custom regions for folding. I use this a lot in my React JS files, where I create many contexts and define long hooks at the top of the file. Thing is: I rarely have to deal with these elements, so I want them to be folded. The regions are already there, but with many files, still comes a lot of clicking.
Existing functionality
Add //#region
and //#endregion
to create foldable sections of code. Click the arrow to the left to fold.
Prefered functionality
Add //#region autofold
and //#endregion
to create foldable sections of code that automatically fold when the file is opened. Either leave the rest of the file alone, or still do the other things this extension does, like folding to a specific level based on a comment or file extension.
This would make granular control possible, something that I'd love to see. Hopefully it's not too hard to implement.
(Also, who made Shift+Return submit...)