

To provide a custom folding for your language create a settings in your vscode settings file (either user or workspace) that conforms to the following specification. The extension provides configuration settings, allowing you to provide custom region tags for your language. regionfolder.wrapWithRegion (Ctrl+M Ctrl+R).The extension also installs a command to wrap a region comment around the current selection. You can re-expand a specific section to see what you want.

Just select the whole file and use this hotkey to collapse all functions to the most basic view. For instance, for C-Style languages, regions are of the form: /* #region Main */įor HTML style languages, you could define a foldable region with the following tags: CTRL+M+M & CTRL+M+O Hot Keys to Collapse Code If your code file is too long and you want to make it more manageable, consider minimizing it with CTRL+M+M Visual Studio code shortcut keys. The precise format of the comment depends on the language. Regions of code that you'd like to be folded can be wrapped with #region comments. This extension enhances the default code folding abilities of Visual Studio Code editor. Visual Studio Code Custom Folding Extension
