Is there a way to bind a keyboard-key to scroll horizontally?
I tried many different things and I cannot seem to put it together.
Is there a way to bind a keyboard-key to scroll horizontally?
I tried many different things and I cannot seem to put it together.
Not a keyboard-only solution, but to scroll horizontally you can do Shift + ScrollUp / ScrollDown
There is a recent commit for new commands to scroll horizontally in the editor, see commands for scrolling horizontally.. From the PR:
Each of
scrollLeft
andscrollRight
scroll two columns (this more or less matches the pace of the vertical scroll)
so those are the new commands.
For example:
{ "key": "ctrl+alt+left", "command": "scrollLeft" },
{ "key": "ctrl+alt+right", "command": "scrollRight" },
scrollLeft
and scrollRight
are working fine in Stable now - have probably been in Stable for awhile. –
Selsyn Not find keyboard-key solution, I provide an useful mouse-using method here.
vertial scrolling : Mouse Wheel Up / Down
horizontal scrolling : Shift+Mouse Wheel Up / Down
There is one now with VSCode 1.40 (Oct. 2019) for List/Tree:
You can now press Ctrl+Up and Ctrl+Down to scroll lists and trees using the keyboard.
If horizontal scrolling is enabled, Ctrl+Left and Ctrl+Right will also scroll horizontally.
© 2022 - 2024 — McMap. All rights reserved.
"editor.wordWrap": "on",
– Bezoar