Live server #189055
Replies: 4 comments 2 replies
-
|
Here are the two most likely fixes to get it opening automatically again:
-Open your VS Code Settings (you can press ctrl + , on Windows/Linux or cmd + , on Mac).
Try tweaking those settings, restart your VS Code just to be safe, and hit "Go Live" again Let me know if that does the trick! |
Beta Was this translation helpful? Give feedback.
-
|
I already tried all of that before posting here, but nothing worked. I tried again after your reply, but it still didn't work. That's why I'm desperate, lol. |
Beta Was this translation helpful? Give feedback.
-
|
Hey, since the basic settings didn't fix it, let's dig a little deeper — there are a few other things that commonly cause this. 1. Set your browser path manually Sometimes just selecting "chrome" from the dropdown isn't enough — Live Server needs the actual path to the browser executable. Open your VS Code On Windows: "liveServer.settings.CustomBrowser": "chrome",
"liveServer.settings.ChromeDebuggingAttachment": falseIf that still doesn't work, try pointing to the full browser path: "liveServer.settings.CustomBrowser": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe"On Mac: "liveServer.settings.CustomBrowser": "google chrome"2. Check your Open the Command Palette ( 3. Reinstall the Live Server extension A corrupted extension install can cause exactly this — Live Server runs fine but just won't open the browser automatically. To do a clean reinstall:
This fixes it more often than you'd expect. 4. Check your OS default browser setting Live Server ultimately hands off to your OS to open the browser. If your OS default browser isn't set properly, the handoff silently fails — which is exactly what you're seeing. On Windows: Settings → Apps → Default Apps → Web Browser → set it to Chrome or whichever browser you prefer. On Mac: System Settings → Desktop & Dock → scroll down → Default web browser → change it there. After changing it, restart VS Code and try Go Live again. 5. If nothing else works — use this as a temporary workaround Add this to your "liveServer.settings.port": 5500,
"liveServer.settings.host": "127.0.0.1"Then instead of waiting for it to auto-open, just bookmark Try these in order and let us know which one does it — or share what OS and browser you're using and we can narrow it down further. |
Beta Was this translation helpful? Give feedback.
-
|
If All Else Fails (Alternatives) If you have tried literally all of the above and it still won't work, the issue might be a corrupt VS Code installation or a rare OS registry bug. Instead of fighting it, use a better alternative:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Body
My live server isn't automatically opening any of my files when I click "go live." I have to manually type 127.0.0.1:5500 or http://localhost:5500 for it to work, and I'm desperate. Can you help me?
Guidelines
Beta Was this translation helpful? Give feedback.
All reactions