Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable region collapsing or expand ALL regions in Visual Studio VB.NET?

In Visual Studio C# (2008), Ctrl+M+L expand all the regions.

There's also a setting in menu:

Tools -> Options -> 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.

like image 876
Tony_Henrich Avatar asked Oct 02 '22 22:10

Tony_Henrich


People also ask

How do I expand all regions in Visual Studio?

Expand / Close All Where you see braces or regions in code, you can collapse or expand them with the keyboard shortcut Ctrl + M, P to expand or Ctrl + M, O to collapse.

How do I enable expand collapse in Visual Studio?

CTRL + M + M will collapse/expand the current section.

How do I close all regions in Visual Studio?

(Ctrl+M, Ctrl+P) - Removes all outlining information for the entire document. (Ctrl+M, Ctrl+U) - Removes the outlining information for the currently selected user-defined region. Not available in Visual Basic. (Ctrl+M, Ctrl+O) - Collapses the members of all types.

How do you collapse all regions in Visual Studio code?

Use Shift + Click on the folding icon to fold or unfold the region and all regions inside. You can also use the following actions: Fold (Ctrl+Shift+[) folds the innermost uncollapsed region at the cursor.


1 Answers

In Visual Studio 2012 and 2013 there is an option for deactivating collapsing (called 'outlining mode').

You can find it under:

Text-Editor->Basic->VB Specific

and then uncheck "Enable outlining mode".

But you will then lose the feature for collapse/expand at all.

like image 28
Sebastian Avatar answered Oct 04 '22 11:10

Sebastian