VS过去在新标签页中打开浏览器,现在打开新浏览器 [英] VS used to open browser in new tab, now opens new browser

查看:324
本文介绍了VS过去在新标签页中打开浏览器,现在打开新浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在更新到Visual Studio Preview的最新版本,并且我认为设置已更改.

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

当我开始在Visual Studio 2017 15.7.0预览版4中调试ASP.NET Web应用程序时,VS将打开一个新的浏览器.

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

我之前也遇到过类似的问题,这是一个设置.这次不是那个设置.如下所示,我的Chrome调试功能尚未选中.

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.

我也知道Project-> Properties下的"Launch Browser"复选框.

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

如果我取消选中没有打开浏览器.我以前最喜欢的行为是在默认浏览器(即Chrome)中打开一个新标签页.

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.

如何恢复该行为?我希望VS在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.

推荐答案

在将Visual Studio更新到最新版本15.7.0之后,我遇到了同样的问题.就我而言,每次调试项目时,它都会打开两个Chrome的新实例. 由于这还不够烦人,所以每次我将窗口移到第二个屏幕时,调试会话都会立即停止.

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.

我已经在Visual Studio选项中搜索了browser,并找到了一个名为

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

关闭浏览器窗口时停止调试器

Stop debugger when browser window is closed

,可以在Projects and Solutions -> Web Projects下找到.我取消选中此设置,等到下一个调试会话以我已经运行的浏览器实例中的选项卡开始.

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.

由于我不确定这是否是此Visual Studio版本引入的错误,因此在任何下一发行版中都可能再次更改.因此,如果发生任何意外行为,则可以还原此设置.

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.

更新

似乎版本15.8.5仍然有此问题/行为.

Seems like version 15.8.5 still has this issue/behavior.

这篇关于VS过去在新标签页中打开浏览器,现在打开新浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆