Is there a Visual Studio equivalent of Vim scrolloff or Emacs scroll-margin?

Viewed 1110
5 Answers

Way old answer, but anyway: there's an option now. Open UI Settings and search for Cursor Surrounding Lines. That's exactly what vim's scrolloff is.

You can add editor.cursorSurroundingLines to your settings.json

e.g

"editor.cursorSurroundingLines": 8,
Related