Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-464176: Keep multiple statements in the same line

$
0
0
Reporter Alexander Kurakin (Alexander.Kurakin) 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()
{
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:


Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>