Vs + vassistx automatically add comments

Source: Internet
Author: User

Reprinted: http://blog.csdn.net/sanlinux/article/details/6332156

In vc6.0, the C ++ function header annotation is completed using a macro, in vs series, C # automatically generates function header comments in XML format when entering three backslashes in the function header. I am too lazy to write comments similar to adding function headers in vs2008. I can only rely on some tools. Today I will introduce vassistx to you. You can download the vassistx plug-in. During installation, you must disable vs2008. Vassistx will not be introduced here. You can use Baidu or Google. The following describes how to add a function header annotation to open a C ++ project, find a method, right-click the function name, click "refacto"-> "document Method" in sequence, and check whether the comments in the function header have come out. It is very convenient. However, this annotation format is the default and may not be suitable for your project. You can change the display style in the options of vassistx, click "vassistx"-> "visual vassistx options" in vs2008, and then select suggestions, click "Edit va snippets" and select refactor document method in the window to change the display style.

 

  1. //************************************
  2. // Function name: $ symbolname $
  3. // Function description:
  4. // OPERATOR: mr. m
  5. // Set to date: $ date $
  6. // Return value: $ symboltype $
  7. // Parameter: $ methodarg $
  8. //************************************


 

This is what I set. Please try it now. This plug-in will greatly improve your work efficiency.

 

Http://blog.sina.com.cn/s/blog_4aff4b970101bfqs.html

Vassistx function annotation and file header annotation template vassistx-> insert va snippet-> eidt va snippets-> refactor document Method
Function Template
/*************************************** **********
// 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:
// <Author> [email protected]
// <Time> $ date $
// <Version> 1.0
// <DESC> build this Moudle
**************************************** * *******/Upload two of your own: file:

/*************************************** **********
 
File Name: $ file_base $. $ file_ext $
Author: $ author $
Version: $ version $
Date: $ date $
Description: $ description $
Others: $ other $
History: $ history $
 
Warning: Copyright (c) 2011-All Rights Reserved

**************************************** *********/

Function:

//************************************** ***********
// Method: $ symbolvirtual $ symbolprivileges $ symbolstatic $ symboltype $ symbolcontext $
// Qualifier: $ methodqualifier $
// Parameter: $ methodarg $
// Return: $ symboltype $
// Description: $ description $
// Author: $ author $
// Date: $ date $
//************************************** ***********

Formats can be arranged as you like.

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.