By default, VS Code allows you to Scroll beyond the last line.
If you don’t like this and you want to Turn this feature off but you don’t know how, then this tutorial is for you.
Let’s get started!
Turn off Scroll Beyond Last Line
Press down CTRL
+ ,
(comma) to open the Settings and search for Editor: Scroll Beyond Last Line and uncheck the checkbox.
Now you won’t be able to scroll down beyond the last line anymore.
Settings.json File
You can also turn this feature off within the settings.json
file:
"editor.scrollBeyondLastLine": false,
If you prefer a video tutorial instead, I got you covered:
Happy coding