Visual Studio 2012 change web browser

2019-01-23 22:22发布

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.

11条回答
再贱就再见
2楼-- · 2019-01-23 22:41

This is what you have to do:

  1. Go to the standard menu toolbar
  2. Click on 'Add or Remove Buttons'
  3. Tick the 'Debug Target' option

enter image description here

查看更多
Melony?
3楼-- · 2019-01-23 22:41

VS 2012 -->> File -->> Browse With -- >> Select Browser -->> Click on "set Default" Button -->> Now Click "Browse" Button

查看更多
淡お忘
4楼-- · 2019-01-23 22:43

Well I found a workaround that is not so clean :P

  • Add a .html file to your project
  • Open the new .html file and click inside the editor.
  • Now Goto 'File' > 'Browse With...' from the Visual Studio Top Menu.

    enter image description here

  • In the 'Browse With' Window, select the desired browser and click the 'Set as Default' button.

    enter image description here

  • Click the Browse button to set the new default selection.

查看更多
【Aperson】
5楼-- · 2019-01-23 22:44

In VS 2012 Professional, on the toolbar next to the run debug icon, is the word 'Start' which can be expanded. When expanded you have the option to 'Open with...' and you can select the browser to open the web project up in. It does not run the debugger, it only opens the website in the selected browser. (toolbar > Start (expanded) > Open with...)

查看更多
你好瞎i
6楼-- · 2019-01-23 22:45

You can use the default browser switcher application if you are using Visual Studio 2010 for this kind of situation:

  1. On your tool bar menu select "TOOLS"
  2. Then from options choose "EXTENSION Manager"
  3. It will open the extension manager window in the left hand side there are options choose the "Online Gallery" option
  4. In Online Gallery search for "WoVS Default Browser Switcher"
  5. Download it and Install it
  6. After download restart VS

Hope this works best for you

查看更多
forever°为你锁心
7楼-- · 2019-01-23 22:45

I don't actually know what you mean under hyperlink, but you can easily make VS2012 working with another browser by simply.. uninstalling IE9 (Control Panel->Software->Windows components->bye bye IE9).

查看更多
登录 后发表回答