Vs+vassistx Automatically add comments

Source: Internet
Author: User

In VC6.0, C + + function header comments are done using a macro, and C # in the VS Series three backslashes in the function header will also automatically generate the function header comments in XML format. And too lazy to write a comment similar to adding a function header in VS2008, you can only rely on some tools, today to introduce VASSISTX. You can download the VASSISTX plug-in, the installation must be VS2008 off. Vassistx in this is not much to do introduction, we can Baidu or Google. Here's how to add a function header comment casually open a C + + project, find a method, right-click the function name, and then click "Refacto" –> "Document Method", this time the function header comment is not already out, very convenient. However, this annotation format is default and may not be appropriate for your project. You can change the display style in the VASSISTX option, click "Vassistx" –> "Visual vassistx Options" in VS2008 and select suggestions, then click "Edit VA Snippets" Select the refactor Document Method in the open window, where you can change your display style.
// ************************************      // function Name: $SymbolName $      // function Description:      // made by: mr.m      // Date: $DATE $      // return value: $SymbolType $      //     Number of arguments: $MethodArg     $//************************************  

This is what I set up, let's try it quickly. This plugin will greatly improve your productivity.

vassistx function comments and file header comment templatesVassistx->insert va snippet->eidt va snippets->refactor Document Method
function templates
/* ************************************************//Method: $SymbolName $//Description://Author: [Email Protected]//Date: $DATE $//Returns: $SymbolType $//Parameter: $MethodArgName $//history:**************************** *********************/

File Header Template

/* ************************************************//Copyright (C), 2012-2013, Cs&s. Co., ltd.//File Name: $FILE _base$. $FILE _ext$//Author: [email protected]//version:1.0//Date: $DATE $//Description://others://history://<a uthor> [email protected]//<time> $DATE $//<version> 1.0//<desc> build this moudle *************** **********************************/

Vs+vassistx Automatically add 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.