AgentSmith icon indicating copy to clipboard operation
AgentSmith copied to clipboard

Can there be an option to use built-in type names instead of their class names?

Open JeremyMorton opened this issue 10 years ago • 2 comments

For example: /// Returns a <see cref="string" /> instead of /// Returns a <see cref="System.String" />

I'm using VS 2015 and R# 9.2.

JeremyMorton avatar Dec 07 '15 23:12 JeremyMorton

Hi Jeremy

Can you give an example when /// Returns a <see cref="System.String" /> is created?

sheitmann avatar Dec 11 '15 15:12 sheitmann

namespace Sample
{
  /// <summary>
  /// A static class.
  /// </summary>
  public static class Class1
  {
    /// <summary>
    /// Returns a <see cref="string" /> representing something.
    /// </summary>
    public static string MyMethod()
    {
      return "something";
    }
  }
}

Choosing "Reflow and Retag Comment [Agent Smith]" on the method's XML comment changes it to:

    /// <summary>
    /// Returns a <see cref="System.String" /> representing something.
    /// </summary>

JeremyMorton avatar Dec 14 '15 21:12 JeremyMorton