views:

1079

answers:

3

In Visual Studio C# (2008) ctl-M-L expand all the regions. There's also a setting in Text Editor->C# ->Advanced to not collapse during file open. I see no equivalents in VB.NET.

Is there a way to expand all the regions, not just the one which has focus in VB.NET.

Or a macro or add-in that does it? I just hate not being able to see all the code.

A: 

In the Edit Menu, the Outlining submenu you have all the options. Including Toggle All Outlining (ctrl M-L by default).

Maybe your key mappings were altered.

You can even select Edit->Outlinging->Stop Outlining if you so desire.

jvanderh
+1  A: 

That's pretty odd. The default profile settings for VB.Net and C# should bind the outlining functions to CTL+M + CTL+L combos.

It's possible that your profile is in a weird state. Try reseting your profile to VB.Net settings and see if that fixes the problem

Tools -> Import / Export Settings -> Reset All Settings -> VB.Net Profile

JaredPar
+1  A: 

I reset the settings and it's still not working. It works in C# but not vb.net. The only thing working in vb.net is collapsing/expanding the region the cusrosr is on via ctril-M-M. I have read posts on the web about others having the same issue like this one although it pertains to VS 2005.

http://www.eggheadcafe.com/forumarchives/NETVisualBasic/Oct2005/post24342618.asp

This solution worked for me which involves using a Macro. (If someone created a macro, then the problem is real. I am sure region functionality existed in VS 2005)

https://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=5941&lngWId=10

Tony_Henrich