1

When I type "///" in the editor, Visual Studio creates an empty comment body with the < summary > and other tags. I can then type the "<" and VS suggests a list of recommended tags.

How can I make the IntelliSense to suggest my custom tags here?

Ideally, I would like to have my own XML documentation template expanded when I type "///"

Gerald Versluis
  • 30,492
  • 6
  • 73
  • 100
dmimat
  • 26
  • 3

1 Answers1

1

Have a look at this. It is primarily targeted at VS2005 en 2008, but it's probably still valid for 2010 with minor differences.

Documenting Your Code With XML Comments

Gerald Versluis
  • 30,492
  • 6
  • 73
  • 100
  • Thanks for quick reply, Gerald! I've seen this article. The proposed solution works for VB but, unfortunately, not for C#. – dmimat Aug 13 '12 at 07:31
  • 1
    Hm, I assumed it would be available in C# as well. After a little further investigation it seems it isn't! You can vote here to get it in: http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/2709987-xml-comments-schema-customization-in-c- – Gerald Versluis Aug 13 '12 at 07:37
  • I did... But I hope there are probably other ways to make it work before Microsoft implements this feature. – dmimat Aug 13 '12 at 07:41
  • Well, if it is hard-coded into VS2010 right now, I don't think there is. – Gerald Versluis Aug 13 '12 at 07:49