Customize C# Standard Document Generators (XML Comments) in Visual Studio

后端 未结 3 665
无人及你
无人及你 2021-01-13 09:56
  • Is there any other kind of documentation generator shortcuts for C# (like /// Generates function() Code) or any tool item (like sign
相关标签:
3条回答
  • 2021-01-13 10:13

    One of the tools that let you customize the default XML comment is our VSdocman. You can pre-define the comment for each code element type (method, property, ...) and even for particular name or type. It's called comment templates. Then in the code editor, right-click and select "Add XML comment". In addition, you can generate a documentation (HTML, CHM, docx, VS help, ...) from your comments with the tool.

    0 讨论(0)
  • 2021-01-13 10:14

    This is now >6 months old, but I think the answer to this question: Change default XML comment snippet in Visual Studio will get you where you want to be. Just add your custom comment structure to the CDATA section, and you're all set.

    0 讨论(0)
  • 2021-01-13 10:32

    Not sure if you mean instead of the /// comments but there are lots of options from this question here:

    https://stackoverflow.com/questions/641364/c-sharp-documentation-generator

    There is also these articles here:

    http://msdn.microsoft.com/en-us/magazine/dd722812.aspx#id0400027

    http://blogs.msdn.com/b/lisa/archive/2010/05/25/how-to-customize-the-xml-comments-that-are-inserted-by-the-visual-basic-code-editor.aspx

    0 讨论(0)
提交回复
热议问题