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?
If it need for collapse the java script code then you may select the code and press
Ctrl + M + H
It will collapse the selected code.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With