Automatic source file preamble in Visual Studio 2010? [closed]

喜夏-厌秋 提交于 2019-12-20 05:53:01

问题


I would like to configure my VS2010 so that, every time a new source file is created, a comment preamble (which will contain a license) is included. Our immediate need is for C#, but it would be nice to predefine different comment blocks for different languages (which may be needed because of different comment syntaxes).

Is there a 3rd-party plugin for that?

Example:

/*
 * This software is licensed under the terms of Blah.
 * Use of this software is conditional to saying "Blah".
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
        }
    }
}

回答1:


Found it: http://msdn.microsoft.com/en-us/library/6db0hwky.aspx



来源:https://stackoverflow.com/questions/4716850/automatic-source-file-preamble-in-visual-studio-2010

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!