Sam
Sam

Reputation: 30298

Visual Studio 2017 Collapsing Regions

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.

Upvotes: 66

Views: 18169

Answers (1)

Gelásio
Gelásio

Reputation: 1909

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"

Upvotes: 121

Related Questions