Delen via


ShowWebBrowser Command

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Displays the URL you specify in a web browser window either within the integrated development environment (IDE) or external to the IDE.

Syntax

View.ShowWebBrowser URL [/new][/ext]

Arguments

URL

Required. URL (Uniform Resource Locator) for the website.

Switches

/new

Optional. Specifies that the page appears in a new instance of the web browser.

/ext

Optional. Specifies that the page appears in the default web browser outside of the IDE.

Remarks

The alias for the ShowWebBrowser command is navigate or nav.

Example

The following example displays the Microsoft Docs home page in a web browser outside of the IDE. If an instance of the web browser is already open, it is used; otherwise a new instance is launched.

>View.ShowWebBrowser https://docs.microsoft.com /ext

See also