如何在Visual Studio代码中使滚动条更宽?

问题描述 投票:2回答:2

有没有办法让Visual Studio Code的窗口滚动条更宽?我发现与其他应用程序相比,它们的几个像素太瘦,我的鼠标经常错过了我想要点击的精确位置。

visual-studio-code vscode-settings
2个回答
2
投票

@andr它仅适用于垂直,完整的设置

,"editor.scrollbar.verticalScrollbarSize": 10
,"editor.scrollbar.horizontal": "visible"
,"editor.scrollbar.horizontalScrollbarSize": 15

workaround使用特别有意义的extension,用于标签组滚动条

(要在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;
}
*/

0
投票

感谢Dai的链接。未记录的属性editor.scrollbar.verticalScrollbarSize为代码窗口处理此问题。它不会影响文件资源管理器上的滚动条,但现在可以。

© www.soinside.com 2019 - 2024. All rights reserved.