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 #regions
or function bodies.
views:
3313answers:
7Options / 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
It would be really nice if it was possible to have it totally ignore (hide) regions... Ideas?
I've posted an answer in a related-but-not-duplicate thread that may help some people here. I detailed how to create macros that will deactivate a single unit's #regions by commenting out the #region and #endregion directives, with a companion for reactivating them. With the #regions deactivated the Ctrl+M+O / Collapse to Definitions function does exactly what I want it to. I hope this is useful for someone beside myself.