Skip to content

Set Default Browser in VS Code

Set default browser in VS Code

When you open a link from VS Code, it opens in your default browser.

But in the latest update, VS Code added a new option where you can choose which browser to use for opening links.

Let’s take a look!

🎥 Want to see this feature in action? Have a look at the following video:

How-to

Open the Settings panel by using CTRL + , (comma) and find the Workbench: External Browser setting.

You can set the name of the browser (i.e: firefox or brave) or the absolute path to the browser’s executable (i.e: C:\Program Files\Mozilla Firefox\firefox.exe).

VS Code External Browser setting that allows you to set a default browser

VS Code will use the system default browser if no value is set.

Settings.json

You can also use this setting in the settings.json file.

"workbench.externalBrowser": "firefox",

"workbench.externalBrowser": "C:\\Program Files\\Mozilla Firefox\\firefox.exe",

Happy coding 💜


Let me know what you think about this article in the comments section below.

If you find this article helpful, please share it with others and subscribe to the blog to support me, and receive a bi-monthly-ish e-mail notification on my latest articles.   
  

Comments