Reformatting of embedded XML comments in c# code

Hi,

how can I achieve the following reformatting:

/// <summary>a comment comment comment</summary>
/// <param name = "foo">describes the parameter foo</param>
public void MyMethod(int foo)
{
...
}

to

/// <summary>a comment comment comment</summary>
/// <param name="foo">describes the parameter foo</param>
public void MyMethod(int foo)
{
...
}

Notice that <summary> tag content is still on the same line, but the spaces around the = are deleted!

Thanks!
Jürgen

1 comment
Comment actions Permalink

Hello Jürgen,

You should turn off 'Spaces around = in attribute' option under ReSharper
| Options | Languages | XML | Formatting Style and then run Code Cleanup
with a profile which has 'Reformat Embedded XML Comments' option turned on.
Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hi,

how can I achieve the following reformatting:

/// <summary>a comment comment comment</summary>
/// <param name = "foo">describes the parameter foo</param>
public void MyMethod(int foo)
{
..
}
to

/// <summary>a comment comment comment</summary>
/// <param name="foo">describes the parameter foo</param>
public void MyMethod(int foo)
{
..
}
Notice that <summary> tag content is still on the same line, but the
spaces around the = are deleted!

Thanks!
Jürgen
---
Original message URL:
http://devnet.jetbrains.net/message/5275075#5275075



0

Please sign in to leave a comment.