title: Visual Studio - Improving Code Folding
body: <p>Are there any options (third-party or otherwise) to improve code folding within the <strong>Source Editor for HTML/ASP.Net</strong>?</p>
  
  <p>The #region directive makes it easier to create your own sections, but it doesn't work in the Source Editor. Ideally I'd like to fold away larger areas of code than between the server-side code blocks. But below shows what happens...</p>
  
  <pre><code>&lt;% // Search Results Section            &lt;-- Just want folding here
  
     foreach (int item in list) { %&gt;  &lt;-- but it is here also
         Number : &lt;% =item %&gt;
     &lt;% }        
  
     //etc...
  %&gt;
  </code></pre>
  
  <p>Code folding falls between &lt;% and %> which isn't really where I want it. I'm trying to get sections of code.</p>