I am setting up my VS Code environment for the first time, but I can't figure out how to set Chrome as the default browser for the workspace.
19 Answers
Go to file-> preferences -> user settings -> search "By Default it will open your default favorite browser" set your browser.
7 Comments
workbench.externalBrowser (in settings.json file) and can be located in the settings UI by searching for browser (first result) or External Browser (only result).The other StackOverflow questions regarding the browser, had to do with opening a specific file. Here are the steps to creating a tasks.json file in a brand new environment.
- From the Tasks menu, Select 'Configure Tasks'
- The entry field prompts you for 'Select a task to configure'
- Choose 'Create tasks.json file from template'
- Edit the file to include the following block:
{
"version": "0.1.0",
"command": "Chrome",
"windows": {
"command": "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"
},
"args": ["${file}"]
}
3 Comments
Chrome can be launched by way of debugging your application. Within launch.json, the configurations[].serverReadyAction.action configuration was given a possible value of debugWithChrome in the VS Code February 2019 release. Note that this will also require you have the Debugger for Chrome extension installed. You will not receive a warning if the extension is not installed and you've configured launch.json to use debugWithChrome.
Note: Configuring launch.json with debugWithChrome will work even if you launch using CTRL+F5 to run the app without debugging.
3 Comments
The pattern is only matched in the Debug Console. It doesn't yet work if the debug target is launched in the Integrated Terminal (and it will never work in external terminals). and The feature does not warn if debugWithChrome is configured but the Debugger for Chrome extension is not installed. Am I the only person to launch my node servers from integrated terminal? Also, Debugger for Chrome seems a bit erratic. Check your VSCode notifications (little bell icon, bottom right)npm start, then launch chrome against localhost. App works fine on Chrome, but debugger opens up MS Edge for the debugging. Not so good, I've been using Chrome dev tools for too long. Anybody else?There is finally a setting to configure the default browser to use:
Workbench: External Browser
Configure the browser to use for opening http or https links externally. This can either be the name of the browser (
edge,chrome,firefox) or an absolute path to the browser's excutable. Will use the system default if not set.
See https://github.com/microsoft/vscode/pull/219885 - largely implemented by a contributor (not a vscode team member) - so great.
It is currently working in VScode Insiders v1.92 and so may be out inStable early August 2024.
Comments
4 Comments
This Alternate Way helped me:)
GoTo-->Google Chrome-->Settings-->Default browser-->Set Google Chrome as default browser
6 Comments
VS Code 1.92+
Use the workbench.externalBrowser setting
Pre-VS-Code 1.92
For general link opening, VS Code doesn't have such a feature at the time of this writing. But there is an open feature-request issue ticket: Set default browser for VSCode application #96132. I suggest that you give that issue ticket a thumbs up to show support for it. You can also subscribe to it to get notified about discussion and progress. Please avoid making noisy comments there like ones that just consist of "+1" / "bump".
As stated in other answer posts,
- for the Live Server extension, you can use the
liveServer.settings.CustomBrowsersetting orliveServer.settings.AdvanceCustomBrowserCmdLine. - for launch configs of types contributed by the builtin JS Debug extension, you can choose what type of contributed launch config you use.
If you want to see related source code for link opening, see https://github.com/microsoft/vscode/blob/860f38ba5312a3f7cbecc10e6de92f9b3ffa2de3/src/vs/editor/contrib/links/browser/links.ts#L398, https://github.com/microsoft/vscode/blob/860f38ba5312a3f7cbecc10e6de92f9b3ffa2de3/src/vs/editor/contrib/links/browser/links.ts#L221, https://github.com/microsoft/vscode/blob/860f38ba5312a3f7cbecc10e6de92f9b3ffa2de3/src/vs/editor/browser/services/openerService.ts#L25, etc.
2 Comments
VSCode 1.99.1. I set workbench.externalBrowser to C:\Program Files\Google\Chrome\Application\chrome.exe. After using npm run start to run my angular app it still opened in edge instead of chrome.start, and what system command it uses to open a browser. that script could be using a system command that uses your system-level default browser, so check your system-level default browser choice.The method of modifying tasks.json no longer works in newer versions of Visual Studio Code. The easiest way to be able to launch your code in a browser is to install the Open in Browser extension from the marketplace.
After it is installed and VS Code is reloaded, you can go to your code and press ALT + B to launch your application in your default browser or ALT + SHIFT + B to select the browser you want to use.
You can also right click and select these option from a drop down menu, but I mention this last because this currently does not work in some versions of VS Code.
Comments
When you want to use your own browser using "Open with Live Server" without change OS globally configuration.
In Windows, Visual Studio Code (ver. 1.70.1 (July 2022)). Go to "File" > "Preferences" > "Settings"
Then select a tab, "User" tab if you want your desired browser for all your projects, or select "Workspace" tab or "ProjectName" tab for especified projects.
Then go to "Extensions" > "Live Server Config" > "Settings: Custom Browser" finally change the 'null' value selecting the browser of your preference from the list (apparently this list depends on installed browsers but i'm not sure).
Comments
Just a helper for the windows users, I just installed windows 10 again and I was wondering how do I set my vscode to open the server (web) using chrome instead of edge, so to do that you just have to configure your windows to use google chrome as default, you don't need to change anything in vscode, I hope this helps someone.
ps: normally you can go open browser you want to be default and setup the configuration. so in chrome you have to go to configurations and scroll down to default browser.
You can adjust settings in your computer to open.HTML file extensions in chrome as a default browser: for Example in PC windows:
go to Control Panel > Default programs > Associate a file type or protocol with a specific programs >HTML extension and choose Chrome.
1 Comment
This may be old but I found something that could help.
First go to Settings/Apps/Default Apps. Set your browser as default.
Next go to VSCODE and go to File/Preferences/Settings/Extensions/LiveServerConfig
Then scroll to settings: CustomBrowser Change it to your custom browser
Note- If the browsers don't show up on VSCODE then you need to set it to default in the settings.
Comments
In my case changing the default browser in the system settings of my pc did it.
1 Comment
After the question was asked, VS Code got many commits & Versions. Then some answers become unusable.
The Job:
My default browser is Edge, and I want to set "Chrome as the default browser for VS Code".
Current VS Code date is 2025-07-29

Go To File>Preferences>Settings
Then for the User go to Workbench>Scroll down and find External Browser
If you want to set different browser for a Workspace then select WorkSpace tab and Workbench group> scroll down and find External Browser
You can restart VS Code to check
1 Comment
None of the above works in my case(my version is August 2022 1.71) to make it work I went straight to **
- File-->Preferences-->Settings-->Extensions-->Plugin open-in browser
** from there was a option which says Default set browser so I choose Brave as there is no ads in it while playing the video as chrome plays ads so for getting a proper feeling of using my self made Jarvis I used Brave.
Thanks
Comments
Begin by accessing the settings menu on your device.
Within the settings, locate the option labeled "Custom Browser" or a similar term.
Click on this option to access the browser settings.
Look for the setting that allows you to change the default browser and select it.
From the list of available browsers, choose the one you prefer.
Once selected, exit the settings menu.
Following these steps should successfully set your default browser to the specific one you've chosen. If you encounter any difficulties or require further assistance, please feel free to ask. Your satisfaction is important to us!
Comments
Click settings -> enter: default browser -> find: Open-in-browser:Default -> enter: Google Chrome





Controlpanel --> Programs-->set default programs -> chrome -> set all as defaultworked for me