How to permanently disable region-folding in Visual Studio 2008

Viewed 26514

Anyone know how to turn off code folding in visual studio 2008? Some of my colleagues love it, but I personally always want to see all the code, and never want code folded out of sight. I'd like a setting that means my copy of Visual Studio never folds #regionsor function bodies.

9 Answers

Edit: I recommend this other answer

Go to the Tools->Options menu. Go to Text Editor->C#->Advanced. Uncheck "Enter outlining mode when files open".

That will disable all outlining, including regions, for all c# code files.

Options / Text Editor / C# / Advanced / Enter outlining mode when files open

It's not permanent, but the keystrokes Ctrl-M Ctrl-L expand the regions in a file

Also, a quick way to toggle expand/collapse of all regions is: CTRL + M + L

Related