VC + + Development (i)--vc++ custom annotations

Source: Internet
Author: User

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

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.