Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Collapsing javascript code in visual studio [closed]

Tags:

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?

like image 294
seanbrant Avatar asked Oct 13 '09 16:10

seanbrant


1 Answers

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.

like image 147
Shiblee Shahriar Avatar answered Oct 06 '22 02:10

Shiblee Shahriar