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