Collapsing javascript code in visual studio

javascript, visual-studio

Solution

Take a look at this article, which implements the #region directives in js files using macros.

Problem

I’m looking for equivalent functionality to C# regions in javascript C# syntax ``` #region RegionName public static void MyFunction() { [mycode] } #endregion ``` This allows me to “collapse” my code in my .js file with Visual Studio and make it a little more manageable. Anybody got any ideas?

Original source

Related problems