views:

68

answers:

3

I've been writing a lot of VC++ 2008 / CLI software recently and am using the C#/CLI style documentation:

/// <summary>
/// Function the does stuff
/// </summary>
/// <param name="someParam">Specifies some option</param>
/// <returns>true if it worked</returns>
bool DoStuff( bool someParam );

I find myself re-typing those blocks quite frequently and frankly, it's getting repetitive. Is there any way to get Visual Studio to create / update those blocks automatically as you create new function definitions or update existing definitions?

A: 

I believe if you type a triple slash (///) at the beginning of a method VS will create a block for you. You will have to supply the description of the function and parameters, though. Not sure if there is a way to get it to auto-update.

Matthew Jones
That's a feature of the C# IDE. The C++ IDE doesn't have it.
Hans Passant
+1  A: 

Visual Assist ought to help.

Hans Passant
+1/Accepted: Thanks! I'd have preferred a free option, but I'll trial it and if it saves me some time then that's a business case right there :-)
Jon Cage
@Jon: see also http://www.wholetomato.com/forum/topic.asp?TOPIC_ID=9205#36983
sean e
+2  A: 

Check out my addin, AtomineerUtils. It does all this and much much more.

(It also supports C++/CLI, C++, C#, Visual Basic and C)

Jason Williams