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)