Reporter | Alexander Kurakin (Alexander.Kurakin) |
---|---|
Created | Apr 4, 2017 2:48:11 PM |
Updated | Apr 20, 2018 10:30:15 PM |
Subsystem | Code Style - Formatter |
Assignee | Dmitry Osinovsky (Dmitry.Osinovsky) |
Priority | Major |
State | Submitted |
Type | Feature |
Fix version | Backlog |
Affected versions | No Affected versions |
Fixed In Version ReSharper | Undefined |
VsVersion | All Versions |
public void BeforeFormatting()After pressing closing brace } above R# formats the code like so:
{
var a=5; var b=33;
Console.WriteLine("abc");Console.WriteLine("def");
}
public void AfterFormatting()
{
var a = 5;
var b = 33;
Console.WriteLine("abc");
Console.WriteLine("def");
}
How do I keep multiple statements in a single like in BeforeFormatting() method?
Here is a screenshot showing what is happening: