The following screen shot is of Visual Studio code viewing a text file which is wider than the screen:
There is a horizontal scrollbar (barely) visible at the bottom of the screen. I find this difficult to see (I just spent 20 minutes searching for how to add a horizontal scrollbar because I didn't even know it was there). In fact, by default it fades to invisible if the window doesn't have focus. There is a fix for this in the following (undocumented) setting:
"editor.scrollbar.horizontal": "visible"
However, I still find this unsatisfactory. Is there any way to improve this situation? The scrollbars in Visual Studio itself are fine, for example.
(Note: I'm aware of word wrap, but that's not what I want.)
Show scroll bars in Word and Excel for WindowsClick File > Options. On the Advanced tab, scroll to the Display section. Select Show horizontal scroll bar and Show vertical scroll bar, and then click OK.
Scroll horizontally with the mouse wheel when holding the shift key. Enables horizontal scrolling by holding down the Shift key and spinning the mouse wheel in Visual Studio 2017, 2019 and 2022. This feature is available in many other programs.
You can give it a more obvious color:
"workbench.colorCustomizations": {
"scrollbarSlider.background": "#ff0000",
"scrollbarSlider.hoverBackground": "#0088ff",
}
There are a couple more scrollbar color settings you can try, these affect both vertical and horizontal scrollbars though.
As of v1.58 see https://stackoverflow.com/a/46634103/836330 for more officially exposed scrollbar settings including
editor.scrollbar.verticalScrollbarSize
editor.scrollbar.horizontalScrollbarSize
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With