You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

VS Code Live Server扩展点击无响应问题求助及已验证解决方法分享

Fix for VS Code Live Server Not Responding When Clicking "Go Live"

Problem Description

I've been stuck with an issue using the Live Server extension in VS Code: clicking the Go Live icon in the bottom status bar or selecting "Open with Live Server" from the right-click menu does absolutely nothing. Even when I manually type http://127.0.0.1:5500/index.html into my browser, I get the error message: "This site can’t be reached 127.0.0.1 refused to connect." For context, I have the folder containing my index.html file open in VS Code during all these attempts.

Troubleshooting Steps I’ve Already Tried

  • Confirmed Chrome is set as my default browser, and configured this explicitly in settings.json with "liveServer.settings.CustomBrowser": "chrome"
  • Checked and adjusted environment variables based on relevant community discussions
  • Kept Live Server’s host setting at the default 127.0.0.1
  • Uninstalled and reinstalled the Live Server extension entirely—no change in behavior

My Current settings.json Configuration

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

Verified Working Solution

After testing, this method fixed the issue completely:

  1. Open VS Code
  2. Go to Manage > Settings
  3. Navigate to Extensions > Live Server Configuration
  4. Locate the Settings: Https option
  5. Set the enable value to false

内容的提问来源于stack exchange,提问作者Ozer Ozturk

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.29 05:37:29