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: 

https://i.gyazo.com/8adab6f320b81df013aaac959bab5320.png

0
2 comments
Official comment

Hello Michal,

Feel free to follow https://youtrack.jetbrains.com/issue/RSRP-464176 request.

Thanks! 

Avatar
Permanently deleted user

This is what I want to achieve:

To prevent putting each statement in a new line.

Any idea how to do this in R#?

0

Please sign in to leave a comment.