Why can't #region directives be formatted automatically?

I started to notice that directives indentation behavior C#

#region

and #endregion

no longer indentation with my code.

Visual studio (2013) always pushes them to the first column of the row. This is not how it is supposed to work and it seems like I did something with my visual studio to make it happen (at work it behaves like it used to and regions get indented with code).

I have ReSharper installed, but it can't find anything in its settings that might cause this, and I don't know how to try and work without it.

What setting or error can you associate with?

+3


source to share


1 answer


Having a syntax error in your project in Visual Studio 2013 will cause auto-indexing regions to not work. Once you fix the bug (s), the regions should fall back fine again.



+4


source







All Articles