Version 1.109 is now available! Read about the new features and fixes from January.
Dismiss this update
The integrated browser enables you to open and interact with web pages directly inside VS Code. Use it to preview web applications, test authentication flows, and select page elements to add as context to your AI chat prompts.

The integrated browser is currently an experimental feature and may change in future releases.
Run the Browser: Open Integrated Browser command from the Command Palette (⇧⌘P (Windows, Linux Ctrl+Shift+P)).
You can open multiple browser instances simultaneously, each in its own editor tab.
Enable the workbench.browser.openLocalhostLinks setting to automatically open localhost URLs in the integrated browser instead of your default system browser.
The browser supports http://, https://, and file:// URLs. Use the address bar to navigate to any URL, or use in-page links to navigate within a site.
Toggle the browser's Developer Tools from the browser toolbar to inspect elements, view console output, and debug page issues.
Move the browser to its own floating window by right-clicking the editor tab and selecting Move into New Window. Use Set Always on Top from the floating window's title bar to keep it visible.
Select elements from a web page to add them as context to your chat prompt. This is useful for getting help with specific HTML elements, CSS styles, or debugging UI issues.
Configure what information is included:
| Setting | Description |
|---|---|
chat.sendElementsToChat.attachCSS |
Include CSS styles for selected elements |
chat.sendElementsToChat.attachImages |
Include screenshots of selected elements |
Learn more about adding context to chat.
The browser automatically denies most permission requests (camera, microphone, geolocation) for security. Notifications, clipboard access, and file selection are allowed.
Control how the integrated browser stores session data such as cookies, logins, localStorage, and cache with the workbench.browser.dataStorage setting.
| Mode | Description |
|---|---|
global |
Data persists and is shared across all browser tabs and workspaces. |
workspace |
Data persists within a workspace but is isolated between workspaces. |
ephemeral |
Data is not shared between tabs or persisted. Similar to incognito mode. |
To clear stored data, select the menu in the browser toolbar and choose Clear Storage (Global) or Clear Storage (Workspace) depending on your current storage mode. Reload the browser tab after clearing storage to apply the changes.
In untrusted workspaces, the browser always uses ephemeral mode regardless of the setting, to protect your data.
VS Code also has a built-in Simple Browser to preview web pages that has limited functionality compared to the integrated browser. If you want to use the integrated browser instead of the Simple Browser, enable the simpleBrowser.useIntegratedBrowser setting.
The Live Preview extension can use the integrated browser for previewing web pages. Enable the livePreview.useIntegratedBrowser setting to use it as the default preview browser.