Visual studio code 实时服务器扩展don';当我点击时,它不工作
我检查了很多可能的解决方案,但到目前为止我无法运行Go Live扩展。默认浏览器:chrome(在JSON文件中),环境变量包括相关名称(),实时服务器设置:host(默认值127.0.0.1) 另外,我卸载了这个扩展,并再次安装,没有任何变化。当我单击时,Go Live symbol(在下面)和open with Live server(右键单击)都没有响应。Visual studio code 实时服务器扩展don';当我点击时,它不工作,visual-studio-code,server,localhost,port,live,Visual Studio Code,Server,Localhost,Port,Live,我检查了很多可能的解决方案,但到目前为止我无法运行Go Live扩展。默认浏览器:chrome(在JSON文件中),环境变量包括相关名称(),实时服务器设置:host(默认值127.0.0.1) 另外,我卸载了这个扩展,并再次安装,没有任何变化。当我单击时,Go Live symbol(在下面)和open with Live server(右键单击)都没有响应。 最后,我试着打字“http://127.0.0.1:5500/index.html,然后我面临“无法访问此站点127.0.0.1拒绝连
最后,我试着打字“http://127.0.0.1:5500/index.html,然后我面临“无法访问此站点127.0.0.1拒绝连接。” 顺便说一下,我正在打开vscode文件夹中的index.html文件。所以我不知道该怎么办。如果有人有什么建议,我想听听并尝试一下 setting.json 编辑:我想添加以下信息,因为它解决了我的问题。请访问Vscode-->管理-->设置-->扩展-->实时服务器配置-->设置:https-->将enable的值更改为false
{
"workbench.colorTheme": "Material Theme Palenight High Contrast",
"[html]": {
"editor.defaultFormatter": "remimarsal.prettier-now"
},
"workbench.iconTheme": "vscode-icons",
"liveServer.settings.https": {
"enable": true
},
"liveServer.settings.CustomBrowser": "chrome",
"workbench.editor.enablePreview": false,
"files.autoSave": "afterDelay",
"liveServer.settings.port": 0,
"liveServer.settings.AdvanceCustomBrowserCmdLine": "",
"liveServer.settings.ChromeDebuggingAttachment": false
}