sheitmann / AgentSmith

Agent Smith is C# code style validation plugin for ReSharper (Visual Studio plugin).
GNU General Public License v2.0
16 stars 7 forks source link

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

Open JeremyMorton opened 8 years ago

JeremyMorton commented 8 years ago

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

I'm using VS 2015 and R# 9.2.

sheitmann commented 8 years ago

Hi Jeremy

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

JeremyMorton commented 8 years ago
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>