Visual Studio extension for auto-generating Doxygen-style comments in C ++ code.
This is the VS2019 version. For VS2022 please visit this page.
Extension capabilities
Use a keyboard shortcut Alt + T to create a comment.
All lines can be enabled / disabled or configured at your discretion.
Tag indentation can be configured for each code element.
Sometimes the same function parameters or method names appear in many places in your code, and you want their documentation to look the same. You can specify the names of such objects and a comment to them in the dictionary, and this comment will be inserted automatically
The following styles are supported (Javadoc and Qt styles are a little bit shifted in marketplace viewer, see github for correct view):
Simple
/**
@brief Foo
**/
SlashBlock
///
/// @brief Foo
///
Javadoc
/**
* @brief Foo
*/
Qt
/*!
* @brief Foo
*/
You can make a comment block with a specific type more visible by filling the first and last lines of the comment:
Auto-generation of comments for trivial functions:
"ClassName object constructor" for constructors
"ClassName object destructor" for destructors
@brief and @retval for getters based on function name:
/**
@brief Get answer to the ultimate question of life the universe and everything
@retval - answer to the ultimate question of life the universe and everything
**/
int GetAnswerToTheUltimateQuestionOfLifeTheUniverseAndEverything()
{
return 42;
}
@brief and @param for setters based on function name: