Skip to content

Disable Scroll Beyond Last Line in VS Code

VS Code Scroll Beyond Last Line

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 🥳

Let me know what you think about this article in the comments section below.

If you find this article helpful, please share it with others and subscribe to the blog to support me, and receive a bi-monthly-ish e-mail notification on my latest articles.