Scroll all the way to the bottom of the file, add a comma after the last setting, then paste in '': 'chrome': This will open your VSCode settings.json file.
It's possible that the extension is working, but your system doesn't have a default browser.Įven if you did set the default browser for your system, it wouldn't hurt to let Live Server know which browser you'd like to use explicitly.įirst, open the Command Pallete with F1, then type in Preferences: Open Settings (JSON) and select that option. Then, reopen VSCode and try again – go to the HTML file you want to view, right click, and select 'Open with Live Server'. Then close VSCode, which will also stop all of the extensions you've installed.
Sometimes the best you can do is start VSCode from scratch.įirst, save all of your work. Better yet, it features live reloading, so if you update your code, the changes are also reflected in the browser.Īll you have to do is right click in the HTML file you want to view, right click, then select 'Open with Live Server': Live Server in actionīut what if Live Server doesn't open your browser and show your page like you expect? If this is happening to you, here are a few things you can try. With just a couple of clicks, Live Server lets you see your page live in an actual browser. VSCode has a lot of great extensions, and Live Server is one of the best.