Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make horizontal scrollbar more visible in Visual Studio code

The following screen shot is of Visual Studio code viewing a text file which is wider than the screen:

enter image description here

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.)

like image 340
bornfromanegg Avatar asked Sep 12 '18 08:09

bornfromanegg


People also ask

How do I show the horizontal scroll bar?

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.

How do I make a horizontal scroll in Visual Studio?

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.


1 Answers

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

like image 66
Mark Avatar answered Sep 27 '22 21:09

Mark