VS2013 Add File Header comment Template

Source: Internet
Author: User

While watching the video, it was found that each time a new class file was created in the video, a string of headers was automatically generated:

So Baidu a bit: http://jingyan.baidu.com/article/3aed632e649d8570108091a7.html

Oh, that's it!

vs2013 installation path: D:\vs2013\Common7\IDE\ItemTemplatesCache in various language templates

Find CSharp and enter.

And see this http://www.cnblogs.com/kingboy2008/archive/2012/05/12/2857489.html also quite detailed.

The characters between the "$" symbols in the code are the variables of the template, and the meanings of the variables refer to:

/* time$ Date    $year $ year    $clrversion $ CLR version    $GUID $ to replace the GUID of the project GUID in the project file. You can specify a maximum of 10 unique GUIDs (for example, GUID1).    $itemname the name provided by the user in the dialog box.    $machinename The current computer name (for example, Computer01).    $projectname the name provided by the user in the dialog box.    the registry key value in the $registeredorganization $ hklm\software\microsoft\windows nt\currentversion\registeredorganization.    $rootnamespace $ The root namespace of the current project. This parameter is used to replace the namespace in the item that is added in the forward project.    $safeitemname The name that is provided by the user in the Add New Item dialog box, removing all unsafe characters and spaces from the name.    $safeprojectname The name that is provided by the user in the New Project dialog box, removing all unsafe characters and spaces from the name.    $time $ The current time in dd/mm/yyyy 00:00:00 format.    $userdomain $ The current user domain.     */

VS2013 Add File Header comment Template

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.