Add comments with VC Assistant (VA)

Source: Internet
Author: User

Add comments with VC Assistant (VA)

Today, you want to add the copyright information to the code you wrote, and to sort out the comments. But in order to maintain the same format, always copy, it seems a bit cumbersome. Then try to find a solution. I'm using vs 2010, and I just started trying to modify the template under the VS installation path, but I didn't respond to the changes. Try again, by adding snippets to the project, but no C + + is found in the Language drop-down box in the code Snippet manager. However, the support for C + + In contrast to C#,vs is not very good.

Finally, when the intention to give up, found that the installation of the VC assistant function is very powerful, not fully utilized. Finally use VC Assistant to solve the problem.

"1" Install VC Assistant (note version problem), for example, for VC + + can not be used for VS, I pretend to be VS2010.

"2" After the installation, restart VS, the menu bar will see "Vassisx", click to open the appropriate settings.

"3" select "Visual Assist X Options" in the menu

"4" advanced-> suggestions, Edib VA Snippets

"5" can be added in C + +

TITL: The name of the display

Shortcut: abbreviation, such as "//f", so I input//f in this file will appear Function this prompt, check press ENTER, the comment template will appear.

"Comment Information"

"//C"

/* *  ========================================================================   Copyright (c) 2014-2015 * * * *   * *      version: V1.0.0   modified by:           Time:                 Modify Description:  ====================================================== ==================  file Name:          function Description:          environment:          ======================================================== ================**/

"//f"

/* + + function Description:        parameter:        return value:        --* /

"Add Comment"

In the project file, enter//f to add the function comment template, enter//c to add the copyright information template. Note that you need to start with a comment symbol, such as///////And so on, do not start with numbers or letters. As another example, the predefined abbreviations begin with #.

In fact, from the VC Assistant's dialog box can be seen, we also to do other shortcut settings. Very convenient.

Add comments with VC Assistant (VA)

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.