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