VC + + Development (i)--VC + + custom annotations
First, tool installation
Install vs2010 and visual Assist x vs2010 click Visual Assist X Options suggestions edit VA snippets
650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M00/8E/8C/wKioL1jFA32gJBEiAABpw5nuBVY470.png "title=" Picture 1.png "alt=" Wkiol1jfa32gjbeiaabpw5nubvy470.png "/>
Second,
Create a new custom comment module
Shortcut is a shortcut, which is what is entered in the editor when a comment is needed, title is the content of the caption, and is the purpose of the annotation. The contents of the comment need to be added in the edit box.
650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/8E/8D/wKiom1jFA8fQJGbNAACJJAEwQOk097.png "title=" Picture 2.png "alt=" Wkiom1jfa8fqjgbnaacjjaewqok097.png "/>
Third,
Custom file Comment template
The comment reads as follows:
/*************************************************
//Copyright (C), 2016-20 -, XXXX. Co., Ltd.
//File name: $FILE _base$. $FILE _ext$
//Author:scorpio
//version:1.0
//Date: $DATE $ $HOUR _02$: $MINUTE $: $SECOND $
//Description:
//Others:
//History:
//<author> Scorpio
//<time> $DATE $ $HOUR _02$: $MINUTE $: $SECOND $
//<version> 1.0
//<desc> build this moudle
*************************************************/
650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M02/8E/8D/wKiom1jFA_zBbARxAAC6gbRJe2k827.png "title=" Picture 3.png "alt=" Wkiom1jfa_zbbarxaac6gbrje2k827.png "/>
Four,
Custom Function Comment Templates
The comment reads as follows:
/*************************************************
//Method: $SymbolName $
//Description:
//Author:scorpio
//Date: $DATE $: $HOUR _02$: $MINUTE $: $SECOND $
//Returns: $SymbolType $
//Parameter: $MethodArgName $
//History:
*************************************************/
650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/8E/8C/wKioL1jFBCiydYiMAACyV1QKm1I678.png "title=" Picture 4.png "alt=" Wkiol1jfbciydyimaacyv1qkm1i678.png "/>
Five,
Use of custom annotations
Enter file or func before you need to add a comment to the header or function , and the VA Assistant will prompt for the title of the shortcut, and select the add File's Comment. When you press the Tab key, the contents of the note are added to the C + + file.
650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/8E/8D/wKiom1jFBErByTbkAAA1cnIpfBk805.png "title=" Picture 5.png "alt=" Wkiom1jfberbytbkaaa1cnipfbk805.png "/>
This article from "Life is endless, struggle not only" blog, declined reprint!
VC + + development (i)--vc++ Custom comments