Tony_Henrich
Tony_Henrich

Reputation: 44085

How to prevent Firefox from switching to the new tab when starting a web app in Visual Studio?

How to prevent Firefox from switching to the new tab when starting a web app in Visual Studio? I would like to stay at the tab I am currently reading instead of switching back to it. This question is similar to this one. However I don't want to open a new browser window.

I tried several Firefox extensions like 'Tab Utilities', 'Tab Mix Pro' and 'Tabloc'.

Any suggestions?

Upvotes: 7

Views: 2083

Answers (2)

Ben Anderson
Ben Anderson

Reputation: 7343

I imagine you want to step through your code on the current page your working on without re-setting up authentication and environment variables.

Here are the options I found, unfortunately I could not find a Firefox plugin that would satisfy your needs.

  1. Disable visual studio from opening a new window when debugging by going to project settings -> Web -> Check Don't open a page. Wait for a request from an external application. Then reload Firefox

  2. Just attach to an existing process through visual studio: Debug -> Attach To Process -> click show processes from all users -> search for WebDev.WebServer.exe (w3wp.exe if hosted from IIS) -> attach. From there just reload the page and Firefox should hook into your application. If you want a quicker way you can make a macro, demonstrated here

Upvotes: 3

BumbleB2na
BumbleB2na

Reputation: 10743

You may also want to try adjusting a setting in Firefox on the "about:config" webpage.

Try setting browser.link.open_newwindow to 1, which tells Firefox to "open new tabs in current tab/window". This will affect regular browsing on Firefox as well, but it should give you the desired effect when debugging from Visual Studio.

Upvotes: 1

Related Questions