VS2019(Windows+Mac)编辑文件模板
阅读原文时间:2023年07月08日阅读:2

macOS

找到设置中的如图条目

设置如下内容:

============================================================
Copyright (C) ${Year} WSE All Rights Reserved.
Organization: Wall Steet English
FileName: ${FileNameWithoutExtension}
Version: $V1.0.0.
Create By: ${AuthorName}
Email: jerry.qi@wallstreetenglish.com
Create Time: ${Date} ${Time}

Description:

============================================================
Modify Mark
Modify Time: ${Date} ${Time}
Modify By: ${AuthorName}
Version: $V1.0.0.
Description:

============================================================

Windows

打开如下文件夹路径(C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\ItemTemplates\CSharp\Code\1033\Class)

设置内容如下

/********************************************************************************
* Copyright (C) $year$ WSE All Rights Reserved.
* CLR Version: $clrversion$
* Machine Name: $machinename$
* Organization: Wall Steet English
* NameSpace: $rootnamespace$
* FileName: $safeitemname$
* Version: $V1.0.0.0
* GUID: $guid10$
* User Domain: $userdomain$
* Create By: $username$
* Email: jerry.qi@wallstreetenglish.com
* Create Time: $time$

* Description:
*
*============================================================
* Modify Mark
* Modify Time: $time$
* Modify By: $username$
* Version: $V1.0.0.0
* Description:
*

********************************************************************************/