为什么VS2017会打开一个新的Chrome窗口而不是重用我现有的窗口? [英] Why does VS2017 open a new Chrome window instead of reusing my existing one?

查看:47
本文介绍了为什么VS2017会打开一个新的Chrome窗口而不是重用我现有的窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在以前的VS版本中,如果我在开发网站时点击f5,它会在我的默认浏览器中启动该网站。


我最近安装了VS2017企业版如果我在此处执行相同操作,则会打开一个新的Chrome窗口,而不是重复使用现有的窗口。这很烦人。有没有办法告诉它表现得像以前的版本一样?


谢谢

解决方案

嗨Yossu,


欢迎来到MSDN论坛。


>>在先前版本的VS中如果我在开发网站时点击f5,它会在我的默认浏览器中启动网站。


< span style ="font-family:'Calibri',sans-serif; font-size:11pt">请检查您选择的浏览器类型,如下面的屏幕截图,并确保选择了Internet Explorer。我测试了它,如果我在Internet Explorer中选择
并按F5,则会调用Internet Explorer,如果我选择了Google Chrome,则在按F5时会调用它。



同时,我发现VS 2017现在支持在谷歌浏览器中对JavaScript和TypeScript进行客户端调试,请看一下:

ASP.NET项目的客户端调试在谷歌浏览器
如果您更喜欢使用Chrome或IE自带的开发工具进行客户端调试,那么有一个设置来禁用
IE和Chrome脚本调试器(这也会阻止Chrome / IE在调试会话结束后关闭)。


转到 工具 - >选项 - >调试 - >一般 并关闭设置
为ASP.NET启用JavaScript调试(Chrome和IE )




最佳问候,


Sara


In previous versions of VS, if I hit f5 when developing a web site, it started up the site in my default browser.

I've recently installed VS2017 Enterprise, and if I do the same here, it opens a new Chrome window instead of reusing my existing one. This is pretty annoying. Is there a way to tell it to behave like previous versions did?

Thanks

解决方案

Hi Yossu,

Welcome to the MSDN forum.

>>In previous versions of VS, if I hit f5 when developing a web site, it started up the site in my default browser.

Please check the browser type that you chose like the following screenshot, and make sure you selected the Internet Explorer. I tested it on my side and if I select the Internet Explorer and press F5, the Internet Explorer is invoked, and if I choose the Google Chrome and it be invoked when you press F5.

Meanwhile, I found VS 2017 now support client-side debugging of both JavaScript and TypeScript in Google Chrome, please have a look at this: Client-side debugging of ASP.NET projects in Google Chrome. If you prefer to use Chrome’s or IE’s own dev tools to do client-side debugging, there has a setting to disable the IE and Chrome script debugger (this will also prevent Chrome/IE from closing after a debugging session ends).

Go to Tools -> Options -> Debugging -> General and turn off the setting Enable JavaScript Debugging for ASP.NET (Chrome and IE).

Best regards,

Sara


这篇关于为什么VS2017会打开一个新的Chrome窗口而不是重用我现有的窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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