2

I'm using Visual Studio 2008 SP1

in VB.NET, when I type ''' above a function, some automatic default XML comments appear:

''' <summary>
''' 
''' </summary>
''' <remarks></remarks>

I would like this to be the following instead:

''' <summary></summary>
''' <remarks></remarks>

Is there a way to change what appears when you type ''' above a function?

Brian Webster
  • 30,033
  • 48
  • 152
  • 225
  • [This answer](http://stackoverflow.com/questions/369116/change-default-xml-comment-snippet-in-visual-studio/369125#369125) says there's a way. I've asked for input here. – Mark Hurd Aug 13 '10 at 16:44

3 Answers3

3

They key is in the VBXMLDoc.xml file. It provides templating for all of the XML comments in VB.NET. Still have not checked if there is a solution for C#. I went so long in wanting it for C#, but have actually just gotten used to the ugly default format.

How to Customize the XML Comments that are inserted by the Visual Basic Code Editor?

Joseph Ferris
  • 12,576
  • 3
  • 46
  • 72
2

At my last place we wrote a VBA macro to insert the remarks for us and then bound it to a hotkey. This allowed us to write ouw own custom comment blocks with additional parameter and a good deal of the information already present.

Check out this article for the full details: http://msdn.microsoft.com/en-us/magazine/cc163757.aspx

Sonny Boy
  • 7,848
  • 18
  • 76
  • 104
1

use GhostDoc! :-)

zahi
  • 11
  • 1