Steps:
Found in 1.vs2010 (install drive letter with C drive for example)
32-bit operating system path: C:\Program Files\Microsoft Visual Studio 10.0\common7\ide\itemtemplatescache\csharp\code\2052\class.zip
64-bit operating system path: C:\Program Files (X86) \microsoft Visual Studio 10.0\common7\ide\itemtemplatescache\csharp\code\2052\ Class.zip
2. Add the following code to the Class.cs file.
/*
* ==============================================================================
*
* Filename: $safeitemname $
* Description:
*
* version:1.0
* Created: $time $
* Compiler:visual Studio 2010
*
* Author:your Name
* Company:your Company Name
*
* ==============================================================================
*/
Or:
/*************************************************************************************
* CLR version: $clrversion $
* Class name: $itemname $
* Machine name: $machinename $
* Namespace: $ rootnamespace$
* file name: $safeitemname $
* Creation time: $time $
* for : XXX
* say Ming: ...
* Modified:
* Modified by:
********************* ****************************************************************/
3. This will automatically add the annotation description information when you create a new C # class file.
Vs2010 How to add file annotations to the head of a C # class file