Skip to content
| Marketplace
Sign in
Visual Studio>Tools>CppTripleSlash - xml doc comments for c++
CppTripleSlash - xml doc comments for c++

CppTripleSlash - xml doc comments for c++

tcbhat

|
28,160 installs
| (19) | Free
Generate xml documentaton comment stubs for c++ when three forward slashes are typed
Download

Generate xml documenation comment stubs in c++ files by typing three forward slashes. This functionality is already built into visual studio for c# code; this extension attempts to bring it to c++ as well.

  • The /// needs to be entered on the line immediately preceding the function.
  • For function declarations (.h file), this doesn't work. A work-around is to replace the ";" with "{}" at the end of the declaration
  • Also added basic intellisense to help with typing comments in the xml documentation section.

Both managed c++ and native c++ files are supported.

For documenting template functions, place part of the function definition on the same line as the template line, for example,

template int foo(char c)

Then type the triple slash on the preceding line. You can reformat as you like later.

The algorithm to insert the doc stub is the following:

  • If a triple slash was typed and those are the only characters on the trimmed current line, go to the end of the next line and check which function you are in (visual c++ code model).
  • If you are in a function, go back to your initial point and insert the stub with and tags
  • If you are not in a function, go back to your initial point and just insert the tag

Version 1.0.6

  • Added support for Vs 2019

Version 1.0.5

  • Better intellisense

Version 1.0.4

  • Inserting the tag if no code element is found

Version 1.0.3

  • Added a few more tags to intellisense

Version 1.0.2

  • Fixed minor bug when Enter is pressed in the doc section

Version 1.0.1

  • Fixed minor bug with commenting in function declarations
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft