How to export a template in Visual Studio?

本文介绍如何在Visual Studio中创建自定义文件模板,并提供了模板文件的基本结构示例,包括版权信息、作者、创建时间和CLR版本等元数据。同时指导读者通过工具栏完成模板导出过程。

Create a customize template file:

1.template arguments introduction like:

上图只是其中一部分,更多请查看文后的参考资源

template sample should be like: 

#region copyright
/*
 * -----------------------------------------------------------
 *  Copyright (c) 2016  All rights reserved.
 * -----------------------------------------------------------
 * 
 *        Author:  $username$
 *        CreateTime:  $time$     
 *          CLRVersion:  $clrversion$
 *  
 */
#endregion
 
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
 
namespace Calos.$rootnamespace$
{
    class $itemname$
    {
    }
}

2. Sequential order of manipulating Visual Studio:  Tool bar-> File -> Export to template -> Follow the instructions!

3. Done! Start Using your template to create files!

 

转载于:https://www.cnblogs.com/hualiu0/p/5653122.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值