Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Customize XML comments in Visual Studio 2008

In VS2008 just before a method if you add “///” it automatically adds the summary block… Do you know if it is possible to modify the default to this?

/// <summary>
/// Author : Failboy
/// </summary>

I would like it to have my in by default – without having to add it every time

like image 624
StevenMcD Avatar asked Oct 01 '09 08:10

StevenMcD


People also ask

How do you add comments in XML?

An XML comment encountered outside the document type declaration is represented by the Comment value syntax element. It contains the comment text from the XML message. If the value of the element contains the character sequence --> , the sequence is replaced with the text --&gt; .

How do I enable XML comment analysis?

Enabling XML Comments XML comments are enabled by default in Visual Basic projects, and cannot be disabled. To enable or disable XML comments for a specific project, go to the project properties page, the Compile tab, and update the "Generate XML documentation file" checkbox.

What symbols are needed for an XML comment in Visual Studio?

The syntax for adding XML comments in your code is triple slashes /// followed by one of the supported XML tags.


2 Answers

Use Ghost Doc. It supports customising these. Most importantly it saves the tonne of other info you need to type in.

like image 95
Preet Sangha Avatar answered Oct 04 '22 19:10

Preet Sangha


Try in here.

Customizing XML Comments

like image 45
kevchadders Avatar answered Oct 04 '22 19:10

kevchadders