Here's a little Visual Studio web development tip that I've been using lately. You know how Visual Studio picks up your installed browsers and has them available as a dropdown list?

这是我最近一直在使用的Visual Studio Web开发技巧。 您知道Visual Studio如何拾取已安装的浏览器并将它们用作下拉列表吗?

Visual Studio Web开发技巧-将Chrome隐身模式添加为浏览器

I found it very useful when debugging to add Google Chrome's Incognito Mode as a browser of its own.

我发现在调试时将Google Chrome的隐身模式添加为自己的浏览器非常有用。

Pull down the chevron and click Browse With...

下拉人字形并单击浏览方式...

Visual Studio Web开发技巧-将Chrome隐身模式添加为浏览器

Add Chrome from either it's standard or user location:

从标准位置或用户位置添加Chrome:

  • System: C:\Program Files (x86)\Google\Chrome\Application\

    系统:C:\ Program Files(x86)\ Google \ Chrome \ Application \

  • User: C:\Users\UserName\AppData\Local\Google\Chrome\Application

    用户:C:\ Users \ UserName \ AppData \ Local \ Google \ Chrome \ Application

Then add --incognito as command line switch and name the browser something like "Google Chrome - Incognito."

然后添加--incognito作为命令行开关,并将浏览器命名为“ Google Chrome-Incognito”。

You can do the same thing with Firefox and Internet Explorer.

您可以使用Firefox和Internet Explorer做同样的事情。

Here I'm adding Internet Explorer with the -private option.

在这里,我使用-private选项添加Internet Explorer。

Visual Studio Web开发技巧-将Chrome隐身模式添加为浏览器

This is a useful thing for developers if you're doing anything with cookies or caching and you've found yourself clearing the cache or browser history a lot.

如果您正在使用Cookie或缓存进行任何操作,并且发现自己经常清除缓存或浏览器历史记录,那么这对于开发人员来说是一件有用的事情。

Visual Studio Web开发技巧-将Chrome隐身模式添加为浏览器

Question for you dear Reader - Is this a feature you would want by default? Would you want not just every browser added, but also the Private Mode for each as well?

亲爱的读者,请问您的问题-默认情况下,您要使用此功能吗? 您不仅要添加每个浏览器,还想要每个浏览器的“专用模式”吗?

关于斯科特 (About Scott)

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

斯科特·汉塞尔曼(Scott Hanselman)是前教授,前金融首席架构师,现在是演讲者,顾问,父亲,糖尿病患者和Microsoft员工。 他是一位失败的单口相声漫画家,一个玉米种植者和一本书的作者。

Visual Studio Web开发技巧-将Chrome隐身模式添加为浏览器
Visual Studio Web开发技巧-将Chrome隐身模式添加为浏览器
Visual Studio Web开发技巧-将Chrome隐身模式添加为浏览器
About   关于 Newsletter 时事通讯
Hosting By 主持人
Visual Studio Web开发技巧-将Chrome隐身模式添加为浏览器

翻译自: https://www.hanselman.com/blog/visual-studio-web-development-tip-add-chrome-incognito-mode-as-a-browser

相关文章:

  • 2021-12-26
  • 2021-11-27
  • 2021-07-22
  • 2021-08-26
  • 2021-09-24
  • 2022-12-23
  • 2022-01-08
猜你喜欢
  • 2021-07-30
  • 2021-05-26
  • 2021-04-09
  • 2022-02-07
  • 2021-12-15
  • 2021-05-10
相关资源
相似解决方案