param xml comment in R#

Jul 13, 2011 at 12:19 PM
Edited Jul 13, 2011 at 12:23 PM

Is it possible to modify the settings in StyleCop for ReSharper so that xml comments stay on a single line.  For example, when I run "Clean Up Code", it changes the following:

/// <param name="myParameter"> My Parameter Details </param>


/// <param name="myParameter">
/// My Parameter Details
/// </param>

I would rather it did not do this for <param> and <returns> comments.  Can this behaviour be changed in the settings?

Jul 23, 2011 at 6:56 PM


Dec 29, 2011 at 5:22 PM
Edited Dec 29, 2011 at 5:24 PM

Hi Andy,

Is there any way this could get onto the roadmap?

As in: "When text is a single line put in onto a single line" option?
Or At least leave the xml comments the way they are? (I know there are options in R# but disabling them do not work)
It is wasting a lot of space in on the screen when looking at code.

The other reason is that you can't turn the reformatting off anymore, I have tried disabling both reformat comments, reformat code and reformat xml, but it still changes the xml comments. Only way to disable it is to disable the stylecop plugin for r# completely. Which I would really not like to do.

Changing this would really make my developer life a whole lot easier :)


Using: Resharper 6.1 and StyleCop 4.7

Dec 31, 2011 at 2:51 PM

Fixed for you in

Jan 6, 2012 at 2:04 AM

Thank you Andy!

From: andyr [email removed]
Sent: Saturday, December 31, 2011 6:52 AM
To: Robertjan Tuit
Subject: Re: param xml comment in R# [stylecop:264971]

From: andyr

Fixed for you in

Apr 30, 2012 at 11:01 PM
Edited Apr 30, 2012 at 11:02 PM

How do you get this to work? I am using build