通过vs/unity生成cs文件的头部注释

1.Visual Studio
【路径】
这里写图片描述
【代码】

/*
* R0 -- 版本号/修改编号
* Modify Date:2018-- -- 修改日期
* Modifier: itsxwz -- 修改人员
* Modify Reason: 代码规范模板测试 -- 修改原因
* Modify Content: 编写规范统一说明 -- 修改内容说明
*/

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

2.Unity3d
【路径】
这里写图片描述
【代码】

/*
* R0 -- 版本号/修改编号
* Modify Date:2018-- -- 修改日期
* Modifier: itsxwz -- 修改人员
* Modify Reason: 代码规范模板测试 -- 修改原因
* Modify Content: 编写规范统一说明 -- 修改内容说明
*/
using UnityEngine;
using System.Collections;

public class #SCRIPTNAME# : MonoBehaviour {
    #region -- 引用外部函数库

    #endregion

    #region --变量定义

    #endregion

    #region -- 初始化函数
    private void Init()
    {

    }

    #endregion

    #region -- 系统函数
    // Use this for initialization
    void Awake()
    {

    }

    // Use this for initialization
    void Start()
    {

    }

    // Update is called once per frame
    void Update()
    {

    }

    #endregion

    #region -- 自定义函数

    #endregion
}

猜你喜欢

转载自blog.csdn.net/itsxwz/article/details/81273336
今日推荐