1

Regions are not the best thing that visual studio has come up with. I really hope there is a solution for this otherwise I will eventually stop using regions altogether.

Attached are two screenshots. I need to go from the 'FROM' state to the 'TO' state. Please note that you cannot see the actual code in the methods or properties. They are just headers. Is that possible? I am ready to waste tons of time to make this happen.

From:

From

To:

enter image description here

My outlining shortcuts are given below. I believe these are the standard ones.

Toggle Outlining Expansion : Ctrl + M, M
Toggle Outlining           : Ctrl + M, L
Stop Outlining             : Ctrl + M, P
Stop Hiding To Current     : Ctrl + M, Ctrl U
Collapse To Definitions    : Ctrl + M, O

I don't want all the code like with Ctrl + M, L. I just want definitions but with regions.

p0lAris
  • 4,750
  • 8
  • 45
  • 80
  • Take a look at [this extension](http://visualstudiogallery.msdn.microsoft.com/0ca60d35-1e02-43b7-bf59-ac7deb9afbca), you can prevent regions from being collapsed, perhaps it will allow to collapse methods only with the usual shortcuts, like you need. But honestly, regions are a huge code smell and prevent the code from being readable from top to bottom like a book or an article. – Pierre-Luc Pineault Jul 06 '13 at 01:58
  • 4
    *I really hope there is a solution for this otherwise I will eventually stop using regions altogether.* Just stop using them. I've found no compelling use for them unless I need to group things in a big class. And at that point, my problem is that I have a big class. – ta.speot.is Jul 06 '13 at 02:13
  • Thanks. I think that's all the motivation I need. – p0lAris Jul 06 '13 at 03:06
  • They are a useful feature nonetheless, alternatively you could use bookmarks. – aybe Jul 06 '13 at 05:35
  • [Visual Assist X](http://www.wholetomato.com/products/featureSearch.asp/) has a VA Outline View that closely emulates your desired outline. – David Ching Jul 06 '13 at 13:14

0 Answers0