1

here is my live Server settings json

{
    "editor.fontSize": 18,
    "workbench.iconTheme": "vscode-icons",
    "files.autoSave": "onFocusChange",
    "terminal.integrated.shell.windows": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
    "explorer.confirmDelete": false,
    "editor.tabCompletion": "on",
    "editor.tabSize": 2,
    "vetur.format.options.useTabs": true,
    "editor.detectIndentation": false,
    "git.autofetch": false,
    "liveServer.settings.host": "localhost",
    "liveServer.settings.port": 0,

}

I try to reinstall live Server and close the windows firewall, but it still not work.

It drives me mad!

1 Answers1

5

Look at your workspace , in the .vscode/settings.json ,you may find the "liveServer.settings.port":8081 in it. Just delete it

higsx
  • 51
  • 1
  • 3
  • yap, it was the workspace settings causing all the problems for me. Thx! – Joel Carneiro Aug 04 '22 at 11:03
  • This file is created after launching a live server instance when there is already an instance running from a different VSCode window. Very helpful to know how to remedy. – LWSChad Jan 10 '23 at 23:52