Hiding the regions in Visual Studio

后端 未结 7 503
-上瘾入骨i
-上瘾入骨i 2020-12-08 10:19

I know VS code folding issues are an old chestnut, but I haven\'t been able to find this in all the other discussions I have browsed through:

We have a team of C# gu

7条回答
  •  死守一世寂寞
    2020-12-08 11:07

    I think it is funny anyone that hates Regions. I love Regions so much I wrote a program called Regionizer, which is an open source project located at http://regionizer.codeplex.com

    I have had bosses and some team members who hate them, but my tool organizes all code alphabetically, so methods are alphabetically sorted in the Methods Region, Properties are sorted in the Properties Region, and Events are sorted in the Events region.

    Try to find code without this tool (or Regions) is what I call Spaghetti Code).

    I have been searching for an easy way to collapse and expand all regions and have been told by MS that the regions are part of the .suo file (same name as the project or solution) and there is not an easy way to get a handle on the regions object them selves.

    I have searched all through the DTE and I haven't found a way to collapse all or Expand all regions, I am going to try the Macro code and see if it works.

    Will post an update shortly.

提交回复
热议问题