Metro Smurf
Metro Smurf

Reputation: 38335

ReSharper Settings for spacing in XML comments with attributes

I asked this same question on the R# Community Forums; haven't heard anything in a few days. Thought I'd re-post on SO.

Where is the R# 6 setting for the spacing in XML comments around the equal sign for C#? I've gone through all the code formatting options I could find in the R# settings, but none seem to be affecting the spacing issue described below whenever I use the R# code-cleanup tool.

Before R# code formatting:

/// <summary>
///  Writes trace information...
/// </summary>
/// <param name="eventCache">A <see cref="T:System.Diagnostics.TraceEventCache" /> object containing....</param>


After R# code clean-up formatting:

/// <summary>
///   Writes trace information...
/// </summary>
/// <param name = "eventCache">A <see cref = "T:System.Diagnostics.TraceEventCache" /> object containing....</param>

Notice the spacing around the equal sign between 'name' and 'eventCache'; and between 'cref' and 'T:System...'

Upvotes: 10

Views: 3115

Answers (2)

Dmitriy Dokshin
Dmitriy Dokshin

Reputation: 727

In "ReSharper → Options → Code Editing → XML Doc Comments → Formatting Style → Tag content → Indent inside element that contain text" set "No indent from parent element".

Upvotes: 22

Russ Clarke
Russ Clarke

Reputation: 17909

This was reported as a bug, as far back as resharper 5 in October 2009, and it's especially irritating as it happens differently for different people.

The work around currently is to create a new Code Cleanup profile and de-select "Reformat embedded XML doc comments".

Upvotes: 4

Related Questions