Is there a way to make Visual Studio Code's window scrollbars wider? I'm finding they're a few pixels too skinny compared to other apps and my mouse often misses the precise location that I'm trying to click.
Change Scrollbar Width in Windows 11/10 Select the key and in the right pane of WindowsMetrics, double-click 'ScrollHeight' word. Instantly, a window should appear on your computer screen (EDIT DWORD). In the value data field of the window, enter a data value. The default value for scroll width is -225.
The default scrollbar width can range anywhere from 12px to 17px.
@andr its only for vertical, the complete set
,"editor.scrollbar.verticalScrollbarSize": 10
,"editor.scrollbar.horizontal": "visible"
,"editor.scrollbar.horizontalScrollbarSize": 15
, and workaround using an exceptionally meaningful extension ,for tabs group scrollbar
(to insert in custom.css):
/*tab group scrollbar;*/
.monaco-workbench>.part.editor>.content .editor-group-container>.title.tabs>.tabs-and-actions-container>.monaco-scrollable-element .scrollbar,
.monaco-workbench>.part.editor>.content .editor-group-container>.title.tabs>.tabs-and-actions-container>.monaco-scrollable-element .scrollbar .slider {
height: 20px !important;
}
/*scrollbars;
.monaco-workbench>.part.editor>.content .editor-group-container>.editor-container .monaco-scrollable-element .scrollbar
, .monaco-workbench>.part.editor>.content .editor-group-container>.editor-container .monaco-scrollable-element .scrollbar .slider {
height: 20px !important;
}
*/
As of VS Code 1.48.0, the following line in settings.json helped me to make horizontal scrollbar larger:
"workbench.editor.titleScrollbarSizing": "large"
I am using Visual Studio Code 1.58.2 on Windows 10 OS.
If you want to test it, open multiple files and you will see the horizontal scrollbar at the top is wider and easy to pick by the mouse pointer.
You need to edit the file %APPDATA%\Code\User\settings.json and add
,"editor.scrollbar.verticalScrollbarSize": 15
,"editor.scrollbar.horizontalScrollbarSize": 15
Thanks to Dai for the link. The undocumented property editor.scrollbar.verticalScrollbarSize
handles this for the code windows. It doesn't affect the scrollbars on the file explorer, but that's OK for now.
Since VSCode's June 2021 release (version 1.58) the scrollbar can be edited directly in the settings (get there faster by pressing ctr+,) and searching for editor.scrollbar
. You can change the vertical scrollbar's size there.
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