Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change default browser with VS Code's "open with live server"?

Tags:

It defaults to my safari but would like to change it to chrome. I looked in preferences, but there doesn't seem to be an option for that. Any ideas?

like image 669
R.Kim Avatar asked Mar 14 '18 23:03

R.Kim


People also ask

How do I change the default browser in VSCode?

Select the Explorer from the left toolbar. Find your HTML file in the Explorer and right-click on it. Choose “Open in Default Browser” or “Open in Other Browsers.” If you select the “Open in Default Browser” option, the HTML file will launch in whatever browser is set as default.

How do I make Chrome open to live server?

Open a HTML file and right-click on the editor and click on Open with Live Server . Open the Command Pallete by pressing F1 or ctrl+shift+P and type Live Server: Open With Live Server to start a server or type Live Server: Stop Live Server to stop a server.


1 Answers

Go to Files > Prefrences > Settings

From Default User settings choose LiveServer Config

Inside it click on pen icon to the left on liveServer.settings.CustomBrowser select chrome.

like image 147
Aditya Avatar answered Sep 21 '22 19:09

Aditya