'Prevent Vscode live server to scroll up on save
Solution 1:[1]
The trick to solve this is to do the following
In program Visual Code: File -> Preferences -> settings
In settings page drop down Extensions and click Live Server Config
Tick the box: Settings:Full Reload
It stops the change of scroll position that you ask for.
However if it scrolls from top of page (in Chrome at least) down to the scroll position you're on when saving/reloading it is because you use:
html {
scroll-behavior: smooth;
}
Just comment it out under development (if you have it/use it) and want to prevent that from happening.
Input from another user: Note: you have to stop the live server and start it again to see the changes (happened to me)
Solution 2:[2]
go to live server extension and Disable then enable it ( don't forget to reload window
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | |
| Solution 2 | abdullah gharbain |

