Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make Visual Studio editor stop scrolling past bottom of a file?

In the Visual Studio editor when you pull the scroll bar down to the bottom of the file, all you see is a blank page, since the text has scrolled up past the top of the text editor window. This makes scrolling to the bottom difficult because you can't just pull the scroll bar quickly all the way down but have to carefully position the cursor so you can still see your code.

How can I make it so that, as in NotePad, when I pull the scroll bar down to the bottom of the file, I see the bottom of the file?

like image 697
Edward Tanguay Avatar asked Nov 17 '09 08:11

Edward Tanguay


2 Answers

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.

like image 102
Dani Akash Avatar answered Sep 22 '22 20:09

Dani Akash


If you are willing to use the keyboard instead, pressing Ctrl+End will achieve what you want.

like image 33
Konamiman Avatar answered Sep 22 '22 20:09

Konamiman