Visual Studio 2012 change web browser

前端 未结 11 1332
天命终不由人
天命终不由人 2020-12-16 09:18

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

相关标签:
11条回答
  • 2020-12-16 09:42

    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"
    0 讨论(0)
  • 2020-12-16 09:44

    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).

    0 讨论(0)
  • 2020-12-16 09:44

    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

    0 讨论(0)
  • 2020-12-16 09:45

    I found a way to change the default browser for all actions in Visual Studio Express 2012 for Web. It's documented here:

    By default, Visual Studio uses your default browser to test pages. To use a different browser or Page Inspector, right-click [an .aspx] page in [the] Solution Explorer and then click [...] Browse With [, which] lets you select a browser from a list, add new browsers to the list, or set one as the default browser. (The default browser setting here applies only to the Visual Studio environment and not to Windows.)

    This also changes the default browser for F5'ing an MVC project, because I'm used to closing IE to stop debugging. When I let Visual Studio use my system's default browser, I first have to switch back to it from my browser to stop debugging, because closing the browser tab doesn't.

    Unfortunately it still doesn't open links in comments in a browser.

    0 讨论(0)
  • 2020-12-16 09:45

    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.

    0 讨论(0)
提交回复
热议问题