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