Region Folding in VS Code

By Chris Coyier on

VS Code has code folding already, of course. Almost any logical bit of code is foldable. A CSS ruleset, a JavaScript function, a nested bit of JSON, any HTML element with children, etc. But if you want to make a custom section of code foldable, you can wrap in special code comments like this:

Did you know?

Frontend Masters Donates to open source projects. $313,806 contributed to date.