Windows users encounter the problem that VS Code Live Server cannot go online
P粉638343995
P粉638343995 2023-09-06 13:34:04
0
1
504

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粉638343995
P粉638343995

reply all(1)
P粉935883292

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template