自己的代码自动添加版权信息

[盘符]:\Program Files\Microsoft Visual Studio 8\Common7\IDE\ItemTemplatesCache
里面可以为各种语言进行修改.如果对WinForm中的类进行修改可以打开 \CSharp\2052\Class.zip.其中\CSharp\2052\包括了所有WinForm文件类型的模板.
打开Class.zip里面有一个Class.cs文件,我们对其进行修改,当我们在WinForm中添加类文件的时候,类文件就会自动添加上我们的信息.
如下:
// ======================================================================
//
//         Copyright (C) 2007-2008     
//         All rights reserved
//
//         filename :$safeitemrootname$
//         description :
//
//         created by  at  $time$
//         
//
// ======================================================================
using  System;
using  System.Collections.Generic;
using  System.Text;

namespace  $rootnamespace$
{
    
class $safeitemrootname$
    
{
    }

}

你可能感兴趣的:(代码)