开发者

A way to insert text to the top of each source file

开发者 https://www.devze.com 2023-03-02 18:01 出处:网络
Is there a 开发者_JAVA百科way, in VS2010, to insert a piece of text at the top of each source file; for example, a copyright notice?You can amend the default template for a class to add your own heade

Is there a 开发者_JAVA百科way, in VS2010, to insert a piece of text at the top of each source file; for example, a copyright notice?


You can amend the default template for a class to add your own header.

Search for a file called class.zip in your Visual Studio directory in Program Files (easier to search because the full path depends on your Visual Studio edition and which language you are using).

Inside it there is a .cs file which is the default template.

I don't know of any way to run through the existing files to add the header, although that could probably be easily achieved with a Powershell command.

0

精彩评论

暂无评论...
验证码 换一张
取 消