Keep multiple statements in the same line
Version: 2017.1 EAP 5
public void BeforeFormatting()
{
var a=5; var b=33;
Console.WriteLine("abc");Console.WriteLine("def");
}
After pressing closing brace } above R# formats the code like so:
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:
Please sign in to leave a comment.
Hello Michal,
Feel free to follow https://youtrack.jetbrains.com/issue/RSRP-464176 request.
Thanks!
This is what I want to achieve:
To prevent putting each statement in a new line.
Any idea how to do this in R#?