How to have comments in IntelliSense for function in Visual Studio?

后端 未结 12 1548
难免孤独
难免孤独 2020-12-04 10:42

In Visual Studio and C#, when using a built in function such as ToString(), IntelliSense shows a yellow box explaining what it does.

How can I ha

12条回答
  •  臣服心动
    2020-12-04 11:11

    To generate an area where you can specify a description for the function and each parameter for the function, type the following on the line before your function and hit Enter:

    • C#: ///

    • VB: '''

    See Recommended Tags for Documentation Comments (C# Programming Guide) for more info on the structured content you can include in these comments.

提交回复
热议问题