Visual Studio 2017 Collapsing Regions

Visual StudioVisual Studio-2017

Visual Studio Problem Overview


I've noticed that in Visual Studio 2017, when I hit CTRL+M, CTRL+O, regions do not collapse to definitions. Has there been a change on this? How do I collapse everything -- including regions?

BTW, I get the same results whether I use the keyboard shortcut or go through the context menu by right-clicking. Regions just do not collapse at all.

Visual Studio Solutions


Solution 1 - Visual Studio

It seems that this behavior is turned off by default. It can be enabled under Tools > Options > Text Editors > C# > Advanced > Outlining > "Collapse #regions when collapsing to definitions"

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionSamView Question on Stackoverflow
Solution 1 - Visual StudioGelásioView Answer on Stackoverflow