Disable / configure comment (re) formatting in Resharper when using code cleanup

Is there a way to determine how comments are “cleared” with Resharper (6)? I did not find a solution to this problem.

Before clearing the code:

/// <summary>
/// This is a comment.
/// </summary>
public class MyClass
{
   ... <not yet cleaned code is here>
}

After clearing the code:

/// <summary>
///   This is a comment.
/// </summary>
public class MyClass
{
   ... <cleaned code is here>
}

Required Result:

/// <summary>
/// This is a comment.
/// </summary>
public class MyClass
{
   ... <cleaned code is here>
}

Notes: I do not want to disable cleanup for one class, etc. I just want to change the indentation in the comment, which is added randomly.

+3
source share
2 answers

I found a solution (using ReSharper 6.1.1000.8.2).

Open the menu: ReSharper-> Options-> Code editing-> Clear code → (Select a profile, there must be a user-defined profile) → C # → Disable built-in XML comments in Reformat format

, ReSharper 6.1!?

, . , , ( ) ReSharper.

, JetBrains .

+5

All Articles