How to make Visual Studio editor stop scrolling past bottom of a file?
If you are willing to use the keyboard instead, pressing Ctrl+End
will achieve what you want.
There is a configuration option provided in VSCode for the functionality you specified. To enable it, go to File -> Preferences -> user settings
On the right side of the editor in settings.json paste the below line at the bottom (before closing bracket), save and close.
"editor.scrollBeyondLastLine": false
This will prevent the editor from scrolling beyond the last line.
Inside of VS Code, Press command+,, and search for "Scroll Beyond Last Line" and untick it