Home  >  Q&A  >  body text

Windows users encounter the problem that VS Code Live Server cannot go online

I'm using VS code and when I try to see how my code looks online (online) the page is either blank or if I choose run to cursor it shows my code just what I have in VS code The way it is written, rather than the browser displaying it. It used to show up, but doesn't show up anymore. The only time it shows my work is when I use the udemy zip file I downloaded for a class project. It works for these files, but once I create a new boilerplate/file, nothing happens. Can anyone help? I have a Dell G515 Windows. I'll attach a screenshot. Enter image description hereEnter image description hereEnter image description hereEnter image description here

I tried restarting both apps and logging in with my profile, but still nothing.

P粉638343995P粉638343995409 days ago458

reply all(1)I'll reply

  • P粉935883292

    P粉9358832922023-09-07 12:22:41

    Try naming the "boilerplate" file "boilerplate.html". If you want something to be displayed when you start the live server, you have to put it in an index.html file in the root of your VS Code workspace folder, or in whatever folder you specify in your liveServer.settings .root settings.

    reply
    0
  • Cancelreply