Formatting method documentation header (XML Doc Comments)
I'm trying to reformat my XML doc comments so that the summary text is on a new line, but other tags are not. This is how the Visual Studio placeholder text is formatted (when '///' is entered).
Is there a way to do this? Failing that, is there a way to populate the VS placeholder text with Resharper's summary text?
If my explanation hasn't been clear enough, this is what I mean:
Before cleanup:
/// <summary>This is a summary</summary>
/// <param name="object">An object</param>
After cleanup (currently):
/// <summary>
/// This is a summary
/// </summary>
/// <param name="object">
/// An object
/// </param>
After cleanup (desired):
/// <summary>
/// This is a summary
/// </summary>
/// <param name="object">An object</param>
Please sign in to leave a comment.
The Agent Smith plugin does this sort of thing.
Thanks Jeremy.
For anyone that wants to set this up too, here are the steps to follow:
<summary>
to 'Always'Unfortunately it seems that this needs to be done for each comment individually.
Code Cleanup has options to use Agent Smith for Code Cleanup instead of ReSharper's built in XML doc comment reformatting.