1

I have setup Vscode on a new m1 macbook, but Live server extension doesn't seem to work. Specifically is not launching the browser (Chrome). This is my setting.json file document :

{
    "workbench.colorTheme": "Default Dark+",
    "explorer.confirmDelete": false,
    "liveServer.settings.CustomBrowser": "chrome",
    "liveServer.settings.donotShowInfoMsg": true,
    "liveServer.settings.useBrowserPreview": false ,

    "files.autoSave": "afterDelay", 
}
Martin
  • 414
  • 7
  • 21
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Oct 21 '21 at 11:52
  • It happens to me too. THere's an updated extension (Live Server is no longer maintained), which is calle Five Server. But it doesn't launch the browser (as it should) either, at least in my case with a Macbook M1 also – Martin Oct 23 '21 at 15:24

2 Answers2

0

Opening wthe very folder where the index.html is located directly in VsCode (as opposed to some of the ascendant (parent of parent of...) folder, makes Five Server work for me - it is now able to open the Chrome browser and update it automatically.

Maybe is the same for Live Server, but again Five Server is an updated fork of Live Server -Live Server is no longer maintained

Open Folder Menu (you might need to select a folder in VSCode for the OpenFolder not to be greyed out)

Martin
  • 414
  • 7
  • 21
  • And you have to name the html file "index.html". It doesn't work for me if not (and probably you'll have to name the .css file "style.css" but haven't tested that – Martin Oct 30 '21 at 20:38
0

Try to write this in setting.json

"liveServer.settings.CustomBrowser": "Google Chrome.app"

instead

"liveServer.settings.CustomBrowser": "chrome"
Jeremy Caney
  • 7,102
  • 69
  • 48
  • 77
pmolukov
  • 1
  • 1