Visual Studio 2019設置自定義頭部注釋


1、首先在VS的安裝路徑下找到如下幾個文件夾:

C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\ItemTemplates\CSharp\Code\2052

 

2.分別進入這幾個文件夾中,將原文件備份至其他位置,修改后進行替換即可

3.友情提供自用表頭注釋

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$ {

///<summary>
/// 版 本:v1.0.0
/// 創建人:萬邦科技-Anthony
/// 日 期:$time$
/// 描 述:
///</summary>
public class $safeitemrootname$
{
}
}

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM