When I'm developing in C#, I heavily use GhostDoc to speed up the process of commenting my code. I'm currently working on a C++ project and I haven't found an equivalent tool. I know about Doxygen, but from what I know it is used to create documentation outside the code, not comments in the code. Are there any good equivalent tools? I would prefer one that runs in VS, but I could handle one that works in any IDE.
(Before someone brings it up, I don't rely solely on GhostDoc to create comments. I just use it to create the starting point for my comments.)
-
Visual Assist might do the job, though I'm not absolutely sure.
-
Visual Assist helps by providing custom scripts executed while typing (or on other).
For example, you can have a script for comments like this :
/************************************************************************/ /* My comment : $end$ */ /************************************************************************/That would be suggested (via a combo-box exactly like intellisense) when you start typing "/**" for example. When you select this suggestion (via Enter/Space/Click - customizable), it will insert the script where your cursor is and just replace markers that are between '$' characters by special values (like the current file name for example). Here the $end$ marker will make the cursor be at this position when the script is executed. This way, you continue typing smoothly. For example with the previous script set, typing exactly :
/** this is a test comment to show you one of the many features Visual Assit!will simply give :
/************************************************************************/ /* My comment : this is a test comment to show you one of the many features Visual Assit! */ /************************************************************************/It's really easy to customize and the behavior of the suggestion (read : intellisense++) system is customizable.
-
I've written an add-in very similar to GhostDoc, but it parses the code directly for itself and thus is able to handle C, C++, C++/CLI, C#, Java and Visual Basic code. It doesn't require the surrounding code to be in a compiling state before it will work. It supports VS 2005, 2008 and 2010. It will also add documentation for more tricky things such as exceptions thrown within the body of a method. It supports Documentation-Xml, Doxygen and JavaDoc commenting formats, and the format and auto-doc rules used are highly configurable. It has a number of other handy features such as word wrapping on doc-comments and normal block comments, and some code generation, outlining and clipboard helpers.
Full information and the download from: http://www.atomineerutils.com/
Jason Williams
0 comments:
Post a Comment