Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2012 change web browser

If I click control-click a hyperlink in the text editor, it opens the URL in a new Visual Studio tab. I would rather the link open outside Visual Studio in my system's default web browser (happens to be Google Chrome). How can I arrange this?

I'm talking about hyperlinks in code comments.


I am using Visual Studio 2012. I found a similar question dated 2009, however the accepted answer (a macro) doesn't work in Visual Studio 2012.

like image 614
Colonel Panic Avatar asked Oct 24 '12 11:10

Colonel Panic


People also ask

How do I change the browser code in Visual Studio?

Open your HTML file in the Visual Studio Code Editor. On the far left vertical toolbar, click on “Extensions.” Alternatively, you can use the keyboard shortcut “Ctrl + Shift + X” to launch Extensions. Click on the search bar to enable writing. Input “open in browser.” Choose an extension that matches your search term.

How do I change the default browser in Visual Studio 2013?

To change the source default editor: Tools -> Options -> Search for "browser" -> View Source in "external editor" -> put the path to your preferred.


2 Answers

Frustratingly, this isn't possible in Visual Studio 2012 or 2013.

Bug reported to developers at http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/2723548-open-links-in-an-actual-browser Please add your vote!

like image 63
Colonel Panic Avatar answered Sep 21 '22 22:09

Colonel Panic


There is an extension Open in External Browser. I'm using Visual Studio 2013 Professional. It works for me.

To install:

  1. Go to "Tools" - "Extension and Updates..."
  2. Choose "Online" - "Visual Studio Gallery" on left pane
  3. Type in search field "open in external browser"
  4. Click "Install"
like image 44
Dmitry Avatar answered Sep 24 '22 22:09

Dmitry