Link to home
Start Free TrialLog in
Avatar of David DB
David DB

asked on

The documentation feature and intellisense tooltip

I'm documenting my code, and have a question regarding the intellisense tooltip.

If my commenting is this:

/// <summary>
      /// Creates a customer and returns the new id. Negative error number. 
      /// </summary>
      /// <param name="newCustomer">Customer object to be created.</param>
      /// <returns>Id of created customer. Negative if error.</returns>
      /// See <see cref="Customer"/> for the object.
      /// See <seealso cref="GetCustomer(long)"/> to get the object.

Open in new window


The tooltip will only show the summary, and for each parameter.

Is there a way of showing more in the tooltip ? Like see cref and returns ?
Avatar of Chinmay Patel
Chinmay Patel
Flag of India image

Of course you can, here is a complete list of possible tags. Please click on See, SeeAlso and Returns for specific guidance.
Avatar of David DB
David DB

ASKER

I know the possible tags.

The question was how to make the intellisense tooltip show more than three lines it does (at least in my visual studio).

Would like to see the other comment properties also.
Oh sorry. I misinterpreted your question. Can you post a screenshot please.
User generated image
The behavior of VS is to not show those items. Those particular items that you mention, as well as a couple of others, are typically used by documentation generators (e.g. Sandcastle) and output in the resulting file(s).

There may be a plugin that can override the default VS behavior--Resharper might do this, I can't remember.
ASKER CERTIFIED SOLUTION
Avatar of kaufmed
kaufmed
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yupp. Per current documentation,
https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/xmldoc/remarks

The <remarks> tag is used to add information about a type, supplementing the information specified with <summary>. This information is displayed in the Object Browser window.
Compile with -doc to process documentation comments to a file.