Monday, May 20, 2024
109
rated 0 times [  115] [ 6]  / answers: 1 / hits: 27992  / 15 Years ago, tue, october 13, 2009, 12:00:00

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?


More From » visual-studio

 Answers
37

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


[#98521] Thursday, October 8, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
karivictoriab

Total Points: 530
Total Questions: 90
Total Answers: 95

Location: Honduras
Member since Sun, Dec 26, 2021
2 Years ago
;