Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I click links in Visual Studio summaries?

I feel like this should be obvious, and perhaps I'm totally missing something, but how do I click URLs from summaries?

Below is a screenshot example of what I am talking about. (Obviously in this case since it is a warning I can copy the warning from the error list window, paste it into a text editor, extract the url, then use my browser. In other cases I would have to printscreen and then manually re-type the url. Either way, both these approaches are time consuming)

enter image description here

The "other cases" would be a result of viewing a summary from other binaries, where the developer used summary tags i.e.

/// <summary>
/// Visit http://www.google.com for more info
/// </summary>        
static void foo()
{
}

I cannot mouse over the summary box to click the link without it disappearing.

EDIT I'm not griping that I cannot use an external browser, I can't click the link (or copy easily) from the summary box. There has to be a better way

like image 810
James Avatar asked Nov 13 '22 14:11

James


1 Answers

This question was asked before, the only way to do it is with a macro (see below). You think Microsoft would make this easier.

Sub OpenURLInChrome()
'copy to end of line
DTE.ActiveDocument.Selection.EndOfLine(True)

'set var
Dim url As String = DTE.ActiveDocument.Selection.Text

'launch chrome with url
System.Diagnostics.Process.Start(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + "\Google\Chrome\Application\chrome.exe", url)
End Sub
like image 118
Jesse Hauf Avatar answered Dec 05 '22 14:12

Jesse Hauf