Brisket-. NET class Header comments

Source: Internet
Author: User



Recently found a good move west to share with you!


programming must be annotated, and the class header comments must be added, each time add very troublesome, finally! Come once and for all!


results--vb.net as an example



--------------Implementation Steps
1 Find the file that created the class

Every time we create a class, we read a file, add a comment, create it,

Path:

E:\ Accelerated -Program \visualstudio\common7\ide\itemtemplatescache\visualbasic\code\2052\class


--e:\ Accelerated -The program is the directory of files, with the installation of the place to change their own, vs directories


The green circle is the VB folder, you can choose C #, and so on




2 Open the Edit class class

Text open------- change------Save------exit.




3 Testing

Open vs----- new VB class -------View




4 Comment code snippet

The following $$ is the automatic acquisition, then the generation will automatically get the time and the class name and other information, such as

<span style= "FONT-SIZE:18PX;" ><span style= "FONT-SIZE:18PX;" > '/***************************************************** ' class name: $itemname $ ' namespace: $rootnamespace $ ' creation time: $time $ ' Created by: Chenchen ' modified: ' Modified by: ' Version number: v1.0.0 ' Copyright: Chenchen all '/*****************************************************public Class $safeitemname $end class</span></span>


5 Other Languages

VB got it. What if C #?

It's easy to find a C # class, a C # format comment, and, of course, a lot of other languages, paths such as




C # Path

e:\ accelerated -Program \visualstudio\common7\ide\itemtemplatescache\csharp\code\2052\class



Code

<span style= "FONT-SIZE:18PX;" >/* class Name: $itemname $ namespace: $rootnamespace $ creation Time: $time $ Creator: Chenchen modified: Modified by Person: Version number: v1.0.0 Copyright: Chenchen all */</span>



Effect


Summary:

In fact, many times we are doing repetitive things, other industries will forget, we are programmers, object-oriented, repeated more, not abstract how to do.

Recently looked at the teaching video of beef brisket, pretty like, except cow teacher old put the class library into underwear, let me can't help hilarious, there is really more useful to talk about actual combat.

In fact, about this has a class template, did not understand, but understand, it seems that later with this certainly can be left a lot of things.



————————— Chop —————————

————— Chenchen —————




Brisket-. NET class Header comments

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.