0

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?

Jon Cage
  • 36,366
  • 38
  • 137
  • 215

3 Answers3

2

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
  • 56,972
  • 11
  • 108
  • 137
1

Visual Assist ought to help.

Hans Passant
  • 922,412
  • 146
  • 1,693
  • 2,536
  • +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 Apr 09 '10 at 09:11
0

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
  • 25,644
  • 17
  • 102
  • 155