From a similar question asked before, it is known that the preferred way of indenting nested using
statements is (which is pre-Visual Studio 2015's default):
using (var enumerator1 = list1.GetEnumerator())
using (var enumerator2 = list2.GetEnumerator())
{
// Use enuemrator1 and enumerator2 here
}
However, I found the behaviour was changed in Visual Studio 2015, when I type the following:
using (var enumerator1 = list1.GetEnumerator())
and hit ↵, the cursor is indented on the second line:
using (var enumerator1 = list1.GetEnumerator())
‸ // Text caret appears here instead of at the same level of
// indent of the previous line
How can I get the old behaviour back and what is the rationale of changing this behaviour?