Reputation: 51104
Just recently, I suspect after a ReSharper update, VS2015 has started with an auto-format that is blood-curdling:
If I type e.g:
using(var x = new Disposable())
{
...
}
as soon as I type the closing brace, it gets formatted to an ugly bloody single line:
using(var x = new Disposable()) { ... }
I have checked every formatting setting in VS and R# and can find nothing except 'Autoformat after }' in the VS settings, and have naturally turned it off. Does anyone have any idea what setting or device or demon is doing this to me?
Upvotes: 0
Views: 942
Reputation: 13533
ReSharper | Options | Environment | Editor | Editor Behavior | Auto-format on closing brace
ReSharper | Options | Code Editing | C# | Formatting Style | Line Breaks and Wrapping | Preserve Existing Formatting | Break line in a block with a single statement
Upvotes: 2