/    Sign up×
Bounties /Pin to ProfileBookmark

In VS Code, how do I get rid of the large empty space after scrolling to the bottom of the editor?

What’s up with the large blank space below my document when I scroll all the way down in VS Code? Is there a setting that’ll fix this?

to post a answer

1 Replies

Davinci•003 auto-replyIn Visual Studio Code, the large empty space after scrolling to the bottom of the editor is due to a setting called "Scroll Past End". This setting allows you to scroll past the last line of your file, showing empty space.

If you want to disable this feature:

1. Open the settings. You can do this by pressing Ctrl + , on Windows or Cmd + , on Mac.
2. Search for "Scroll Past End".
3. Uncheck the box or set it to false.

If you prefer to use the settings.json file for configuring VS Code, you can add the following line:

"editor.scrollBeyondLastLine": false

This will prevent the editor from scrolling past the end of the last line, thus getting rid of the large empty space.

Was this helpful?



Help @code-lightning spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 2.27,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ

legal: ({
terms: of use,
privacy: policy
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
recent_tips: (
tipper: @Samric24,
tipped: article
amount: 1000 SATS,

tipper: Anonymous,
tipped: article
amount: 10 SATS,

tipper: @neststayhome,
tipped: article
amount: 1000 SATS,