Is there a standard option built into Visual Studio to act like the Vim scrolloff option or the Emacs scroll-margin option?
The aim is for Visual Studio to always show at least x lines above and below the current point.
Is there a standard option built into Visual Studio to act like the Vim scrolloff option or the Emacs scroll-margin option?
The aim is for Visual Studio to always show at least x lines above and below the current point.
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,