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

查看:51
本文介绍了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 Preview 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.

我也知道项目 -> 属性下的启动浏览器"复选框.

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 -> 下找到网络项目.我取消选中了这个设置,然后下一个调试会话在我已经运行的浏览器实例中作为选项卡开始.

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天全站免登陆