Stefan
Stefan

Reputation: 12300

How to include clickable link in VisualStudio QuickInfo

If I hover over a method name in VisualStudio a QuickInfo is shown as a ToolTip, e.g.

enter image description here

I would like to be able to click on the link that I included in the quick info. Here is my corresponding method comment:

    ''' <summary>       
    ''' Copy the schema of the input table with the given name.
    ''' <para>
    ''' See https://svn-extern.isi.fraunhofer.de/projects/forecast4/wiki/CopySchema
    ''' </para>
    ''' </summary>

In VisualStudio2017 I am able to click on the ToolTip (does not work in VisualStudio2012) but the hyperlink is not active. I would expect that I could use some xml tag in the method comment to activate the hyperlink but I did not find one that works:

https://www.codeproject.com/articles/11082/c-and-xml-source-code-documentation

A tag "a", simlar to the one in the article above

<a href="https://www.w3schools.com">Visit W3Schools.com!</a> 

does not work for me. Does the html support for QuickInfos need to be enabled somehow in the VisualStudio settings?

Currently, I can jump to the method declaration and then Ctrl+Click on the hyperlink in the method comment. However, I would prefer to directly click on the url in the QuickInfo.

Is there any way to do so, e.g. with an xml tag that I missed or with Resharper or another VisualStudio extension?

Upvotes: 1

Views: 306

Answers (1)

Lennart
Lennart

Reputation: 10343

ReSharper can do this with its Quick Documentation feature.

To invoke use either Ctrl-Shift-F1 or Ctrl-Q, depending on your keyboard scheme.

There is also the Enhanced Tooltip extension, which improves Tooltip formatting, but also doesn't support clickable URLs (sources available though, you could try to add it yourself).

Upvotes: 1

Related Questions