Search code examples
visual-studiovisual-studio-2008commentsxml-comments

vb.net - automatic XML comments - ''' -- Can I change the automatic defaults?


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?


Solution

  • 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?