2

I'm working on code base with a lot of #region sections. As they are anti pattern and can hide bugs, I do like to see all regions expanded when I open any C# source file. It there any way to set it up in Visual Studio / ReSharper?

Simon Achmüller
  • 1,096
  • 13
  • 26
  • Not sure about _automatically_ on open, but `Ctrl+M, L` toggles everything expanded/collapsed, and R# has an `Alt+Enter` option to remove all regions in the whole file/project/solution if you want to get rid of them completely. – sellotape Dec 07 '18 at 12:48

1 Answers1

5

Hurrah, I found solution, it was answered here: How to permanently disable region-folding in Visual Studio 2008:

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

Simon Achmüller
  • 1,096
  • 13
  • 26