Prevent Vscode Live Server from going to the top of the page

Asked

Viewed 186 times

0

I have a very annoying problem that happens sometimes on Vscode. I use the live server to see real-time HTML modifications, but every time I update the live server or give it a CTRL+S in CSS, it "scrolls" to the top of the page. And that’s really boring, because when it comes to a big page, I have to keep going down the page with every change.

I didn’t want to change editor for the custom and ease of dealing with Vscode, but this problem is very annoying and slowing me down.

  • This doesn’t happen here... See if the URL in the browser is not anchored, like http://127.0.0.1:5500/# (shouldn’t have this one # at the end), sometimes can be tb http://127.0.0.1:5500/#idDaAncoraInterna, this tb can scroll to unwanted places, remember to clear the URL and test to see if it solves

  • Worse than not, the URL is clean "http://127.0.0.1:5500/", and I already tested both in Chrome and Firefox, I even thought it could be the browser. :'(

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.