Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Turning off automatic outlining in Visual Studio

Can any one tell me how to turn off automatic outlining in Visual Studio? Outlining is the feature that collapses code into programmer defined regions.

In my opinion, there are precious few circumstances where outlining is useful. Yes, it makes large files easier to navigate, but mostly it obscures complexity. My preference would be to have this feature turned off by default when opening a source file.

like image 702
Michael J Avatar asked Nov 10 '09 16:11

Michael J


People also ask

How do I enable expand collapse in Visual Studio?

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

How do I Collapse All Methods in Visual Studio?

In the Visual Studio code editor, once you write a method in a class, you have the ability to click the (-) sign next to the method to collapse the whole method to a single line.


3 Answers

In Visual Studio, go to Tools > Options > Text Editor > C# > Advanced

Clear the checkbox Enter outlining mode when files open

like image 185
Michael J Avatar answered Sep 23 '22 01:09

Michael J


Tools -> Options -> Text Editor -> C# -> Advanced -> Outlining.

like image 24
Philip Wallace Avatar answered Sep 23 '22 01:09

Philip Wallace


For VB it's Tools - Options - Text Editor - Basic - VB Specific - Enable outlining mode

like image 31
Kaido Avatar answered Sep 22 '22 01:09

Kaido