自动源文件前导在Visual Studio 2010? [英] Automatic source file preamble in Visual Studio 2010?
本文介绍了自动源文件前导在Visual Studio 2010?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想要配置我的VS2010,以便每次创建一个新的源文件时,包括一个注释前缀(它将包含一个许可证)。我们迫切需要的是C#,但是它会很好地为不同的语言(这可能需要因为不同的注释语法)预定义不同的注释块。
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).
第三方插件?
示例:
/*
* 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)
{
}
}
}
推荐答案
: http://msdn.microsoft.com/en-us/library/6db0hwky。 aspx
这篇关于自动源文件前导在Visual Studio 2010?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文