Search code examples
visual-studiointellisensexml-documentation

`<returns>` tag in Intellisense in Visual Studio


I use Visual Studio (currently 2017 Prof.) + Resharper. XmlDocs (\\\<summary> blah </summary>) are great, and Intellisense will display it to you. It picks up the summary tag, and any param tags, if you get the cursor in the right place.

But the returns tag is often very useful, especially for Framework Library functions. e.g. reminder of which way around the return value of int.TryParse() works, etc.

I can't see any way to access that information from Visual Studio / Intellisense?

Is it accessible? Or does it only turn up in the MSDN docs?


Solution

  • Ctrl + Shift + F1, aka "Resharper QuickDoc" displays all of the XML documentation that information.

    You can modify that shortcut, if desired. Action code is ReSharper.ReSharper_QuickDoc.


    Demonstration:

    enter image description here