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.
- //************************************
- // Function name: $ symbolname $
- // Function description:
- // OPERATOR: mr. m
- // Set to date: $ date $
- // Return value: $ symboltype $
- // Parameter: $ methodarg $
- //************************************
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.