Visual Studio 2019 to set custom header comments

1, first find the following several folders in the installation path of VS:

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

 

2. After replacing respectively, into these folders, back up the original file to a different location, you can modify

3. courtesy own header comments

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

/// <the Summary>
/// version: v1.0.0
/// Created by: IMC Technology -Anthony
/// date: $ Time $
/// Description:
/// </ the Summary>
public class $ safeitemrootname $
{
}
}

 

Guess you like

Origin www.cnblogs.com/Anthony518/p/11016571.html