How do I turn on collapsible regions for markup in .cshtml (razor pages) visual studio 2012?

Exitos picture Exitos · Jan 16, 2013 · Viewed 10.5k times · Source

In visual studio 2010 markup in MVC3 and ASPX pages was collapsible (by closing tag) however it does not seem to be working in visual studio 2012. Anyone know how to get it working? I cant find it in the options...

:-)

Answer

Leniel Maccaferri picture Leniel Maccaferri · Mar 10, 2015

This worked for me in Visual Studio 2013:

<!-- #region Targets -->

<h1>Targets</h1>

<fieldset>

...

</fieldset>

<!-- #endregion -->