How to create ///summary

前端 未结 9 630
面向向阳花
面向向阳花 2021-02-01 00:13

How do I generate these kind of summaries in Visual Studio?

/// 
///  Returns a number
/// 
/// 

        
相关标签:
9条回答
  • 2021-02-01 01:01

    Put the cursor on the line just before the method or class that you want to document and type "///". Visual Studio will generate the XML doc tags, and you can fill in the details.

    0 讨论(0)
  • 2021-02-01 01:07

    I can recommend GhostDoc to make this even easier.

    0 讨论(0)
  • 2021-02-01 01:08

    Like George says, /// on the line just above will autogenerate it.

    Beyond the boilerplate comment template it gives you, I'd recommend taking a look at the other tags you may use: http://msdn.microsoft.com/en-us/library/5ast78ax.aspx

    This may be used in combination with other tools such as Sandcastle to automatically build CHM guides, etc.

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