Have you ever seen this writing in a program? The entire project each CS file header contains a, copyright, version and other information of the comment header?
Similar to this class file:
/************************************************************************* ======================== Enterprise number development Local commissioning ======================== Garsonzhang qq:382237285 Small ads: "WinForm rapid development Framework, please pay attention to gzframwork, follow the author Garsonzhang" Thank you for using this program , open source to the end if you have new needs, please contact me to increase your support ************************************************************************/usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;namespaceqywxlocaldebug{ Public classConvertex { Public Static stringToString (Objectobj) {//Type conversion stringTMP =string. Empty;Try{tmp = obj. ToString (); }Catch{tmp =string. Empty; }returntmp } Public Static intToInt (Objectobj) {intTMP = 0;Try{tmp = Convert.ToInt32 (obj); }Catch{tmp = 0; }returntmp } Public Static intToInt (ObjectObjintErrorvalue) {intTMP = Errorvalue;Try{tmp = Convert.ToInt32 (obj); }Catch{tmp = Errorvalue; }returntmp } }}
View Code
Baidu, it is not difficult to find many solutions online, the most common is: http://blog.csdn.net/gelupu/article/details/18715629
In this way, it is possible to achieve the goal, but if you have two items at the same time, do you want to annotate the header differently? And not every time it's copied?
It's tricky. In view of this demand, I specifically wrote a comment plugin "Vstcustomernote.vsix", I use the environment for VS2013
First here to download the plugin Http://pan.baidu.com/s/1iC6IU
Unzip to get two files after download
Installation steps:
One, DLL is to be added to the global cache, add method see http://blog.csdn.net/flywei2012/article/details/9056867
Install (note Running with administrator)
Second, install the Vstcustomernote.vsix plug-in (double-click installation):
When the installation is complete, start vs and review the extensions and updates below the tool:
If there is a plugin that is successful for installation (please contact q:382237285 for installation failure), you can perform the following demo:
In the use of the process of understanding it
VS2013 Automatic Comment Plugin