P
P
Pavel Pavel2018-12-27 05:33:09
Visual Studio Code
Pavel Pavel, 2018-12-27 05:33:09

VS Code - How to change page refresh in live server?

How to make it so that in a live server in vs code, when saving (updating), the page does not move to the very top, but remains at the same level as it was? And then with each edit you have to scroll down to the desired element.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
Johnny Smith, 2018-12-27
@Olek1

Install Node.Js, don't uncheck npm during installation, then open from the raw folder of the PowerShell site and type npm install -g browser-sync and browser-sync start --server --port 3000 --no-notify reload - -url https://192.168.0.123:3000 --files="**/*" and delete this live server to hell once and for all

E
Egor, 2021-03-10
@Softwider

Well, everything is simple - check the box in the Live Server settings - opposite Settings: Full Reload and restart it.
You don't need any Gulp and Node.Js at the entry level - don't waste your time on this! Practice writing code - that's the most important thing!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question