Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I change the XML comment template in Visual Studio?

I would like to add a <tag> or two to the "standard" template of XML comment tags provided by Visual Studio 2010. When I type /// in my source, I'd like to see the new tags included with the default tags in the inserted comment block. How do I do this in a C# environment?

like image 410
Walter Kelt Avatar asked May 18 '12 16:05

Walter Kelt


1 Answers

We've done some research on this topic in the past (for one of our customers) and while XML Comment templates can be customized for VB - see post by Lisa Feigenbaum - this doesn't work for C#.

Lisa and Visual Studio team folks confirmed the trick doesn't work in C# in VS10.

There is a request to add this to C# Editor in VS11. If you care for the feature to get into VS, please vote here - http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/2709987-xml-comments-schema-customization-in-c-

In the meantime our customer opted to use our GhostDoc Pro product as it allows just any XML Comment customization using a T4 template.

like image 69
sergeb Avatar answered Sep 17 '22 15:09

sergeb