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

Ali picture Ali · Feb 9, 2009 · Viewed 135.2k times · Source

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

alt text alt text

How can I have that for functions and properties I write?

Answer

Solmead picture Solmead · Feb 9, 2009

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.