VS C#类文件自动生成头部注释

VS C#类文件自动生成头部注释(以VS2019为例)

1、更新位置

E:\VS2019\vs_2019\Common7\IDE\ItemTemplates\CSharp\Code\2052\Class

在这里插入图片描述

2、替换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$
namespace $rootnamespace$
{
    class $safeitemrootname$
    {
    }
}

更新文件

#region 作者和版权
/*************************************************************************************
* CLR 版本:      	$clrversion$
* 类 名 称:       	$itemname$
* 机器名称:       	$machinename$
* 项目名称:		  	$rootnamespace$
* 文 件 名:       	$safeitemname$
* 作    者:       	张三 zhangsan
* 唯一标识:      	$guid1$  
* 登录用户:       	$username$
* 所 属 域:       	$userdomain$
* 创建年份:       	$year$
* 创建时间:       	$time$
************************************************************************************/
#endregion

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$
namespace $rootnamespace$
{
    class $safeitemrootname$
    {
		#region  Fileds
		 
			#region public Properties
			
			#endregion
		 
			#region private
			
			#endregion
		 #endregion
		 
		#region Constructor
		
		#endregion
		
		#region Methords
		
			#region public
			
			#endregion
		
			#region private
			
			#endregion
			
			#region Event private
			
			#endregion
		#endregion
    }
}

相关推荐

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-19 19:28:05       67 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-19 19:28:05       71 阅读
  3. 在Django里面运行非项目文件

    2024-07-19 19:28:05       58 阅读
  4. Python语言-面向对象

    2024-07-19 19:28:05       69 阅读

热门阅读

  1. 《管理表格系统》开发心得

    2024-07-19 19:28:05       20 阅读
  2. gdb 的常用指令

    2024-07-19 19:28:05       19 阅读
  3. 矩形加矩形求和

    2024-07-19 19:28:05       20 阅读
  4. TCP协议

    TCP协议

    2024-07-19 19:28:05      19 阅读
  5. 深入探讨:Node.js、Vue、SSH服务与SSH免密登录

    2024-07-19 19:28:05       21 阅读
  6. GitHub每日最火火火项目(7.18)

    2024-07-19 19:28:05       18 阅读
  7. 微服务常用的中间件有哪些?都有什么用途?

    2024-07-19 19:28:05       18 阅读
  8. 逆向工程四个抽象层次-系统架构师(三十)

    2024-07-19 19:28:05       21 阅读
  9. OpenCV——图像与视频的读取

    2024-07-19 19:28:05       19 阅读
  10. 物理设计基础概念 —— Pin

    2024-07-19 19:28:05       17 阅读
  11. 机器学习之对比学习MoCo

    2024-07-19 19:28:05       18 阅读
  12. tcp(7) — Linux Programmer‘s Manual

    2024-07-19 19:28:05       15 阅读