Vs2010 How to add file annotations to the head of a C # class file

Source: Internet
Author: User
Tags visual studio 2010

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.