Is it possible to set the number of lines for scrollLineDown and scrollLineUp? The default for my VS Code version is a single line, however I'd like to increase that.
1 Answer
At the time of this writing, no. I'm not aware of a setting to control this. Actually, I'd suggest to look in the direction of keybindings, but even that is a dead end right now. At least- for the two commands you mentioned. The related source code is in https://github.com/microsoft/vscode/blob/31e5940fb0f424c89474f4c967be9564a1e793a8/src/vs/editor/browser/coreCommands.ts#L1514. The args does not take anything to specify number of lines. Though it looks like it wouldn't be hard at all to implement- just define a type for the number of lines like there is for the cursorMove command, and then pass those arguments in the call to EditorScroll.runCoreEditorCommand.
I'd suggest that you raise a feature request issue ticket.
runCommandscommand and repeat the command you want multiple times, you can use the same key bind combo as the original key bind