1.VS2005 中找到C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\ItemTemplatesCache\CSharp\2052\Class.zip
或在VS2010 中找到C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplatesCache\CSharp\Code\2052\Class.zip\Class.cs
2.在Class.cs 文件中添加如下代码。
/*
* ==============================================================================
*
* Filename: $safeitemname$
* Description:
*
* Version: 1.0
* Created: $time$
* Compiler: Visual Studio 2010
*
* Author: Your name
* Company: Your company name
*
* ==============================================================================
*/
3.这样在生产c#类文件时会自动添加头文件