Remove areas in visual studio

Ctrl ML does not switch all regions in vb.net (2008) when there is a hierarchy between regions. I don't like regions. Is there a way to expand ALL regions or remove them permanently?

+1


source to share


3 answers


there is no such thing as expanding the entire selection in nested paths, Cntrl-M, L is expanding all outlines (or cntrl-m, cntrl-m to expand 1 area). VB.NET does not have the ability to toggle the selection mode as shown in C #.



0


source


In VB.Net do search and replace and select Use Hidden and Use Regular Expression:

Replace:



^.*\#(end)*(:Wh)*region.*\n

      

FROM

+3


source


There is a claim from James Nish that "NArrange can also be used as a tool to remove regions from source code."

I haven't thought about it until now, but NArrange can also be used as a tool to remove regions from source code.

If you were to define empty element declarations for types, see below, then NArrange will simply parse the members and write them back. This won't parse anything, but rather just rinse the areas and clear the gap between the members.

 <Element Type="Type" Id="DefaultType">
     <Elements>
         <Element>
              <Elements />
         </Element>
     </Elements>
 </Element>

      

However, this will not remove regions that are defined within members.

Source: http://www.codeproject.com/KB/codegen/narrange.aspx?msg=2579903#xx2579903xx

+1


source







All Articles