1、VS2017添加类注释方法
先找到VS2017的安装路径,然后找到Common7\IDE\ItemTemplates\CSharp\Code\2052\Class路径,里面有一个class类,打开class类,内容如下:
using System;
using System.Collections.Generic;
$if$ ($targetframeworkversion$ >= 3.5)using System.Linq;
$endif$using System.Text;
$if$ ($targetframeworkversion$ >= 4.5)using System.Threading.Tasks;
$endif$
/**
*┌──────────────────────────────────────────────────────────────┐
*│ 描 述:
*│ 作 者:赵永杰
*│ 版 本:1.0
*│ 创建时间:$time$
*└──────────────────────────────────────────────────────────────┘
*┌──────────────────────────────────────────────────────────────┐
*│ 命名空间: $rootnamespace$
*│ 类 名: $safeitemrootname$
*└──────────────────────────────────────────────────────────────┘
*/
namespace $rootnamespace$
{
/// <summary>
/// Copyright (c) $year$ All Rights Reserved.
/// 描述:
/// 创建人: zhaoyongjie
/// 创建时间:$time$
/// </summary>
public class $safeitemrootname$
{
}
}
然后保存,重启VS即可,