How to permanently disable region-folding in Visual Studio 2008

Steve Cooper picture Steve Cooper · Sep 22, 2008 · Viewed 24.4k times · Source

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.

Answer

Greg picture Greg · Sep 22, 2008

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.