I had this problem and I solved it by changing the port number in the settings.json file to an opened one.

To get to the settings.json file you just click CTRL+SHIFT+P, then type "settings", click the "Preferences: Open Settings (JSON)", then paste this inside the { }:

"liveServer.settings.port": 0

This will randomly pick an opened port each time. This is how my JSON file looks like:

{
    "liveServer.settings.port": 0
}

If there are multiple lines in the JSON file, make sure each line is separated by a comma(,), like this:

{
    "liveServer.settings.CustomBrowser": "microsoft-edge",
    "liveServer.settings.port": 0
}
Answer from Elyasaf755 on Stack Overflow
🌐
OpenClassrooms
openclassrooms.com › accueil › forum › matériel & logiciels › discussions software › problème avec live server de visual studio code
Problème avec Live Server de Visual Studio Code - Le bouton "Go Live" n'apparait pas dans la barre en bas par YonathanUzan - page 1 - OpenClassrooms
J'ai exécuté "VSCODE" puis chargé l'extension "Live server" à la fin de l'installation, il n'était pas apparent et il était indiqué "disable" alors comme dit dans la doc mais il faut chercher, j'ai effectué un Control+Shift+L et ensuite un Control+shift+O (comme Open) et l'icone "Go Live" est apparu et fonctionne.
🌐
Reddit
reddit.com › r/vscode › visual studio - live server extension not working
Visual Studio - L'extension Live Server ne fonctionne pas
February 13, 2025 - When I am trying to use the live server extension then only I am facing this issue from past 2 days. Before that it was perfectly working fine from almost an year. ... Not on VSCode or Live server, it's on the browser dev tools. Check this link: https://developer.chrome.com/docs/devtools/network/reference#offline
🌐
Ubuntu Forum
forum.ubuntu-fr.org › viewtopic.php
Live server dans VS Code n'ouvre aucun navigateur / Développement et programmation / Forum Ubuntu-fr.org
March 10, 2021 - Sous Kubuntu 18.04 je teste VS Code qui semble présenter pas mal d'avantages pour le développement WEB, mais j'ai un problème avec l'extension "live server". Chaque fois que je l'invoque, j'obtiens le message "Something is went wrong! Please check into Developer Console or report on GitHub.". Dans la console intégrée il n'y a aucun message d'anomalie et dans Github je ne trouve pas comment reporter le problème. Comme de plus l'extension a fonctionné du premier coup sous windows 10 et sous Mageia 7, j'aurais tendance à soupçonner une cause du côté de mon paramétrage Ubuntu.
🌐
Reddit
reddit.com › r/vscode › l'extension live server ne fonctionne pas correctement
r/vscode on Reddit: L'extension Live Server ne fonctionne pas correctement
July 16, 2025 - Quand le serveur live est en marche et que la console du navigateur est ouverte, ma page web ne se recharge pas automatiquement et n'affiche pas les…
🌐
Reddit
reddit.com › r/vscode › visual studio code - live server does not work
Code Visual Studio - le serveur live ne fonctionne pas
May 6, 2024 -

Hi! Something is wrong with my vscode or live server or something, and I don't know what to do. My teacher thinks there's something wrong with my php server extension. I am trying to write php code through xampp and vscode. It has worked the entire semester until now. When I try to look at the file in the browser through live server it doesn't work. I see a view of the files in my directory, and if I click them I just download them.

and I get these error messages:

I tried changing the path in the settings.json file to this:

"php.validate.executablePath": "C:\\xampp\\php\\php.exe"

(since I saw in my file explorer that it was actually located in the php directory, and not directly in the xampp folder.) The problem persists, but now I don't get the error messages anymore. I have also tried redownloading xampp and the live server extension, but it did not solve the problem.

When I open up a php-file in the browser I used to be able to just double click it in the file explorer and it opened up in my default browser. Now if I double click it it opens up in vs code instead, and if I right-click it and select open with > Choose another app, I only get Firefox as an option for a browser even though I use Brave for default and also have Chrome and Internet explorer downloaded, which is also weird and used to work differently. (I use windows) When I open the file in Firefox, the php code doesn't read right and apache is started in xampp Control Panel. The code looks like this:

The only way I can see the file correctly is if I write localhost/directoryname as a url, but then the code doesn't update manually.

My university teacher does not know how to help me. We have tried multiple things but she told me I could try to ask in a forum so... Does anyone know what has happened? My best guess is that some setting has changed without me knowing it. What can I do? Thanks so much in advance. / Ida

🌐
freeCodeCamp
freecodecamp.org › news › visual-studio-code-live-server-not-working
Visual Studio Code Live Server Not Working
August 14, 2020 - Scroll all the way to the bottom of the file, add a comma after the last setting, then paste in "liveServer.settings.CustomBrowser": "chrome": Note that you can also use "firefox", "safari", or any other browser as the value for the "liveServer.settings.CustomBrowser" setting. Finally, save the settings.json file and try to run Live Server again. Even after telling Live Server which browser you want to use, it's possible that it's still not opening your page in that browser correctly. The next thing to try is to set the default browser for your operating system itself.
🌐
GitHub
github.com › ritwickdey › vscode-live-server › issues › 3024
ne fonctionne pas · Issue #3024 · ritwickdey/vscode-live-server
October 9, 2024 - Type: Bug lorsque je lance le live server celui ci ne fonctionne pas et n'ouvre aucune fenetre alors que celui ci fonctionnait tres bien il y'a 1 mois Extension version: 5.7.9 VS Code version: Code 1.94.1 (e10f2369d0d9614a452462f2e01cdc4...
Author   kevind45520
Find elsewhere
🌐
Admininfo
fr.admininfo.info › how-to-activate-live-server-in-visual-studio-code
⚙COMMENT ACTIVER LIVE SERVER DANS VISUAL STUDIO CODE? - FAQ
Alors tu cherchesLive Server et installer.Donner le bouton vert pour installer. Ensuite, vous auriez déjà installé cette extension, il ne vous reste plus qu'à vérifier si cela fonctionne vraiment. Il vous suffit d'ouvrir un document html, de faire un clic droit sur le code html, enfin de cliquer sur "Ouvrir avec Live Server » ou lafonction rapide (Cmd + L Cmd + O).
🌐
Microsoft Learn
learn.microsoft.com › fr-fr › visualstudio › liveshare › troubleshooting
Résolution des problèmes - Visual Studio Live Share | Microsoft Learn
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires. ... Cet article décrit les conseils de dépannage, les solutions de contournement et les réponses aux problèmes courants et aux questions. Vous pouvez également consulter le FAQ. Voici des conseils de résolution des problèmes liés à l’installation de Visual Studio Live Share.
🌐
Yume-design
yume-design.com › Visual-Studio-Code-Live-Server-et-MAMP
Visual Studio Code, Live Server et MAMP - Yume - Agence de communication eco-responsable
August 3, 2023 - Comment installer et faire fonctionner live server ? 1) installer le plugin Live Server sur Visual Studio Code.
🌐
Ubuntu Forum
forum.ubuntu-fr.org › viewtopic.php
[Résolu] Live server avec VS Code / Développement et programmation / Forum Ubuntu-fr.org
November 27, 2020 - Pas impossible que plusieurs versions soient installées. Vobul Utilisez le retour utilisable de commandes !!! J'aime la langue française, mais je parle franglais, deal with it. RTFM ... Nickel ! Ça a fonctionné avec l'option 1 -> Update Node.js with NVM (Node Version Manager) Merci !
🌐
Reddit
reddit.com › r/vscode › visual code studio live server - infinite refresh?
r/vscode on Reddit: Visual Code Studio Live Server - Infinite Refresh?
January 4, 2025 -

So I have a decent knowledge of CSS and HTML, so I decided to finally use VC, since I was scared my 2020 Intel MacBook may not support it. Anyways, so I had some confusing moments, but after time, I understand how to use app at least at the most basic way, and in order to test it, I created a file and downloaded addon called “Live Served”, because I saw that lots of people use it. Now, the issue I encountered was basically that when it loads the page, my code is shown, however, whether it is infinite amount of refreshes or just one really long one, it basically doesn’t show other code I have wrote and only way to see my added code is to close and open the Live Server. Who knows how to deal with this? I have <meta charset = “UTF-8”> and I have no problem with starting local server. There are two things I should say that can be a reason of this happening (theoretically):

  1. I tried to deal with this issue on my own, so I decide to google the solution, and redditors and users from few other websites said that for some of them changing Settings > Commonly Used > Auto Save to afterDelay helped them, and I did too.

  2. This is more reasonable reason, basically my Mac is only 1.1GHz with i5 Intel Core, so the laptop is generally weak, so it could be a reason.

Any help would be appreciated!

(I will put a video too; please ignore the text, it was just me being bored with testing and the issue itself)

🌐
Keziahmoselle
blog.keziahmoselle.fr › vscode-portable-liveserver-sftp
Introduction Visual Studio Code, Portable, Live Server et SFTP | Blog - Keziah MOSELLE
September 3, 2019 - Remarque : Si vous souhaitez utiliser Live Server avec de la génération côté serveur : https://github.com/ritwickdey/live-server-web-extension ... Remarque: Plus vous baissez les ms, plus votre éditeur risque d’être lent (Surtout en version portable !) Vous pouvez également choisir onFocusChange ou onWindowChange si un délai ne vous correspond pas.
🌐
Chrome Web Store
chrome.google.com › webstore › detail › live-server-web-extension › fiegdmejfepffgpnejdinekhfieaogmj
Live Server Web Extension - Chrome Web Store
November 5, 2022 - Les notes sont mises à jour chaque jour. Il est possible qu'elles ne reflètent pas les avis les plus récents. ... Makes your existing server live.
🌐
Alsacreations
forum.alsacreations.com › topic-20-88314-1-Resolu-Live-server--MAMP-avec-Visual-Code-Pro.html
[Résolu] Live server + MAMP avec Visual Code Pro - Alsacreations
Bonjour, jusque là j'utilisais ... du code en live. Je suis passé à Visual Code Pro et j'aimerait m'alléger pour ne plus utiliser CodeKit (vu que VCP fait le même job). J'ai des CMS sous MAMP et impossible de paramétrer Live Server pour voir mon code en ...
🌐
YouTube
youtube.com › watch
[FR] Visual Studio Code : Installation et Utilisation de Live Server - YouTube
Comment installer l'Éditeur de texte Visual Studio Code sur Mac.#Éditeurdetexte#VSCode#VisualStudioCode▼ SUIVEZ-MOI SUR ▼» Facebook : https://www.facebook.co...
Published   June 12, 2020
🌐
Zeste de Savoir
zestedesavoir.com › forums › sujet › 17933 › extension-live-server-dans-vs-code
Extension live server dans vs code • Forum • Zeste de Savoir
liveServer.settings.file: : Path to the entry point file. Useful for SPA ... Et si tu souhaites que ce soit le fichier actif (donc pas un fichier fixe) qui s’affiche quand tu lances le serveur, probablement que la séquence de raccourci Alt + L puis O reste la meilleure solution actuellement.
🌐
GitHub
github.com › ritwickdey › vscode-live-server › issues › 2503
Live Server · Issue #2503 · ritwickdey/vscode-live-server
July 24, 2022 - Issue Type: Bug 24/07/2022 Avant, Live Server marche très bien. Maintenant, il ne fonctionne plus. J'ai essayé beaucoup de suggestions mais le problème reste entier. Extension version: 5.7.5 VS Cod...
Published   Jul 24, 2022