I am using GhostDoc to create my XML comments and I am very happy with the format. I use the following format (c#)
/// <summary>
/// Creates new client.
/// </summary>
/// <param name="uri">The URI.</param>
/// <param name="param">The param.</param>
/// <returns></returns>
Using the code cleanup from R# 7.1.1 it reformats my xml comments, it even inserts new xml comments where there were missing, its really annoying. Is there a way to stop this.
I have created my own profiles for code cleanup and DISABLED everything (even the stylecop settings too) and I do a code cleanup and sure enough it wants to reformat my xml comments and place new ones where they were missing..
Anyone know how to get around this?
Thanks
Most likely you are doing something wrong or you've hit a bug either in ReSharper or in StyleCop. You should:
I was having a similar problem. I used GhostDoc and R# Code Cleanup kept turning this
/// <summary>
/// Defines the entry point of the application.
/// </summary>
/// <param name="args">The arguments.</param>
into this
/// <summary>
/// Defines the entry point of the application.
/// </summary>
/// <param name="args">
/// The arguments.
/// </param>
It was infuriating because I had Reformat embedded XML doc comments
deselected. I finally found the offending setting at ReSharper->Options->Code Cleanup->StyleCop->1611: Element Parameters Must Be Documented.
I unchecked that, and it stopped screwing up my formatting.
You should be able to follow a similar approach with your own issues, substituting "Parameters" with whatever your problem is.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With