Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS used to open browser in new tab, now opens new browser

I've been updating to the latest version of Visual Studio Preview and I think a setting has been changed.

When I start debugging an ASP.NET web app in Visual Studio 2017 15.7.0 Preview 4, VS opens a new browser.

I've had a similar issue before and it was a setting. This time it's not that setting. As you can see below, my Chrome debugging is already unchecked. enter image description here

I'm also aware of the check box to "Launch Browser" under Project -> Properties.

If I uncheck that no browser is opened. The previous behavior which I really liked was to open a new tab in my default browser i.e. Chrome.

How do I restore that behavior? I'd like VS to automatically open a new tab in Chrome and if I have no browser open, only then it should open up a new browser.

like image 600
Sam Avatar asked Apr 20 '18 03:04

Sam


People also ask

Why is my computer opening new windows instead of tabs?

Make sure you do not have sticky keys on, that may cause a problem. Shift-clicking a link in Chrome opens a new window. Press shift more than five times rapidly to find out if sticky keys are on. Another clue is if your text is always capitalized and numbers come out as symbols.

What is the difference between opening a new tab and opening a new window?

A tab is more or less same as a window. A window can contain several tabs and all session data and cookies are shared across all tabs and open window. It's better to open a lot of tabs than opening several windows because too many window becomes too cluttered to handle.


1 Answers

After updating Visual Studio to the latest version 15.7.0 I ran into the same issue. In my case each time I debugged my project it opens up two new instances of Chrome. As this was not annoying enough, each time I was moving the window to my second screen, the debug-session stopped immediately.

I've searched the Visual Studio options for browser and found a setting called

Stop debugger when browser window is closed

which could be found under Projects and Solutions -> Web Projects. I unchecked this setting and et voilà the next debug-session started as tabs in my already running browser-instance.

As I am not sure if this is a bug introduced with this Visual Studio version, this may change again in any next release. So this setting may be reverted in case of any unexpected behavior.

Update

Seems like version 15.8.5 still has this issue/behavior.

like image 98
KingKerosin Avatar answered Oct 08 '22 12:10

KingKerosin