您的位置:首页 > 其它

How to export a template in Visual Studio?

2016-07-08 13:36 676 查看
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!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: