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

RSRP-287613: method attribute formatting is not respected

$
0
0
Reporter Berryl.Hesh (Berryl.Hesh) Berryl.Hesh (Berryl.Hesh)
Created Jan 6, 2012 2:52:25 AM
Updated Jan 6, 2012 2:53:04 AM
Priority Normal
Type Unspecified
Fix versions No Fix versions
State Submitted
Assignee Unassigned
Subsystem No subsystem
Affected versions No Affected versions
Fixed in build No Fixed in build
When R# formats a method with multiple attributes in a single line (see below) it puts in an extra line. The only C# option I see for attributes and methods is to place it on the same line, which isn't what I want.

Has anyone seen this one before? Got a fix?

Cheers,
Berryl

** the way it should be **

[TestCase(101, 99, 200), TestCase(101, -99, 2)]
public void Plus_WithWholeAmounts(decimal lhs, decimal rhs, decimal result)
{
// doStuff
}

** after R# reformats (unwanted line after attributes) **
[TestCase(101, 99, 200), TestCase(101, -99, 2)]

public void Plus_WithWholeAmounts(decimal lhs, decimal rhs, decimal result)
{
// doStuff
}

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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