Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add different default and custom tags to Visual Studio XML Documentation

I am just learning how to use the XML documentation capabilities in visual studio and C#.

The default XML tags used in the documentation are "summary", "param name", and "returns".

I'd like to add "remarks" to the default tags. I'd also like to add custom tags.

I've looked through MSDN, the XML documentation tutorials, and stackoverflow and haven't found the way to do this. Any suggestions are much appreciated, and thanks!

Mark

like image 564
user1352442 Avatar asked Apr 23 '12 22:04

user1352442


People also ask

How do I add a tag in Visual Studio?

You can add tags by updating the . vstemplate XML file. You can either use template tags that are built into Visual Studio or create custom template tags. Template tags appear only in the Visual Studio 2019 New Project dialog box.

How do I add comments to XML in Visual Studio?

To insert XML comments for a code element Do one of the following: Type /// in C#, or ''' in Visual Basic. From the Edit menu, choose IntelliSense > Insert Comment. From the right-click or context menu on or just above the code element, choose Snippet > Insert Comment.

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.

What is Inheritdoc C#?

This allows you to inherit documentation from base class libraries without having to add them as documentation assemblies in your project.


1 Answers

This thread describes a solution for VB, but says that it is not available for C#. Follow the links to vote to have this feature included in the next version of Visual Stuido.

like image 159
Dan Busha Avatar answered Sep 19 '22 17:09

Dan Busha