Live server is not auto reload when i hit save on my Vscode

1.8k views Asked by At

Someday in the past, I had this problem because my folder is .something it starts with the "." the live server is not working. But now, my folder isn't like that but the Live Server isn't working right again when I hit save on my vscode.

4

There are 4 answers

0
Ali Samie On

For me, I was trying to save a file that was not fully HTML.

I wrapped my code with proper HTML structure and now its working fine.

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- YOUR CODE -->
</body>
</html>
0
Poseidon Paris On

Make sure meta charset is "UTF-8" in the head.

1
Clifford Hodgson On

I use live-server on sublime text Ubuntu and I noticed that my saves is not committing to the auto save in the browser.

So what I noticed was that when I open the files individually but not as a folder the problem was solved. I hope this helps

0
peter On

There’s one thing that resolves the issue.

  • Open settings.
  • Search for ‘autosave’.
  • Set it to ‘afterDelay’.
  • Just below that, set the AutoSaveDelay to anything very less like 5 (I have set it to 1)
  • Now search for ‘Wait’ in settings.
  • In LiveServer > Settings:Wait, set the value very low (e.g. 3). This should help regardless of platforms