Editor: Cursor Surrounding Lines

Use this setting to configure when scrolling starts as the cursor moves through a file.

With "editor.cursorSurroundingLines": 5 for example, scrolling starts 5 lines from the edges of the viewport.