Reputation: 13068
Is there a snippet or add-on to generate the comment header for methods and classes in Visual Studio 2008.
Currently i just type /// to generate the header. Is there an add-on to run a code through and add the comment header for methods, members and classes that doesn't have one?
Upvotes: 1
Views: 3803
Reputation: 832
I second @aku for GhostDoc. I use it every single day on the purchased code-base that I maintain and extend. I've bound ctrl-shift-d, d to generate documentation and ctrl-shift-d, r to regenerate documentation.
Wonderful, just wonderful.
Don't expect the generated documentation to be extraordinarily accurate and helpful, however. For
public string DocumentGenerate(int generationParameter)
It will generate something like
/// <summary>
/// Generates the Document
/// </summary
/// <param "generationParameter">The generation Parameter</param>
/// <returns></returns>
Which, while accurate, could be more helpful. You'll need to flesh out the documentation.
Upvotes: 2