Reputation: 3549
Does Visual Studio have something like a typical java IDE to facilitate the entry of c++ documentation comments?
For example, in my Java IDE, when I put the cursor before my function/method and enter /**
followed by Enter, the IDE auto-generates a comment template. The comment template includes the arguments for the function/method. I then manually fill in the documentation for each argument.
To further clarify, please consider this function:
function int foo (int id);
Procedure:
/**
and press Enter or something like that. (This works in every Java editor I know.)Result:
/**
* @param id
* @return
*/
Upvotes: 3
Views: 1292
Reputation: 3
Highlight a block of text and use CTRL+K and CTRL+C to put comments around them. Use CTRL+K and CTRL+U to uncomment. You can also try out the GhostDoc visual studio extension.
Upvotes: 0
Reputation: 56
Triple whack. Put the cursor above a function and type ///
.
A comment stub including the parameters is generated in XML, and can be scraped for compiling documentation.
Upvotes: 1
Reputation: 52441
How about the DoxygenComments extension?
Edit: just saw that it only highlights comments and doesn't create them. Atomineer Pro does that, but it's not free.
Upvotes: 1