Visual studio code vscode实时服务器端口设置不起作用,并且始终在localhost:8081中打开

Visual studio code vscode实时服务器端口设置不起作用,并且始终在localhost:8081中打开,visual-studio-code,port,liveservertestcase,Visual Studio Code,Port,Liveservertestcase,这是我的实时服务器设置 { "editor.fontSize": 18, "workbench.iconTheme": "vscode-icons", "files.autoSave": "onFocusChange", "terminal.integrated.shell.windows": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe", "explorer.confir

这是我的实时服务器设置

{
    "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,

}
我尝试重新安装live Server并关闭windows防火墙,但仍然无法正常工作


它让我发疯

尝试按照此步骤操作,看看是否适合您:


但不包括配置文件中的端口设置。尝试:liveServer.settings.port“:9015收听9015或任何号码。