-
Notifications
You must be signed in to change notification settings - Fork 30.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scroll bar visibility should be configurable #66000
Comments
We will not respect the windows options because this is not exposed by Electron. Thus leaving this open as a feature request to see if more users request it. |
Thanks, isidorn. Your efforts are highly appreciated. 👍 |
@SetTrend There is a "hidden" setting you can use, but you need to restart VS Code for the setting to apply
|
@alexandrudima why isn't this exposed via our settings schema? |
@SetTrend yes, this only affects the editor. |
@isidorn because "you need to restart VS Code for the setting to apply", i.e. work is needed in the scrollbar and in the editor to handle the change event. |
But there are already settings that require reload of the window and they just prompt for it. |
AFAIK none of the (code) editor settings ask for a reload. I know disabling the telemetry crash reporter process requires a restart, but the settings that really need a restart should IMHO be very few. I am not arguing about anything... I am just describing that to expose these as real user settings some work needs to be done to polish things, to react to the change event, perhaps even come up with better names and make things more consistent. We have a lot of scrollbar settings and we should see which ones we want to expose and how. -- https://github.com/Microsoft/vscode/blob/5aba426b77d58dbeedbc539d1780931b917cb8bb/src/vs/editor/common/config/editorOptions.ts#L2595:L2610 But this requires some work and should be therefore planned. |
... and, I may add, to extend this feature to all panels, including Explorer and Terminal, as it should be an application wide accessibility setting, not an editor feature. |
Related: #35454 |
Currently the scrollbar in the editor is not hidden, it's only the handle that's gone. The horizontal scrollbar behaves as expected i.e. completely gone. This applies regardless of minimap (which I like). |
For subscribers of this issue: |
I experimented by adding code at the end of
to transform ScrollbarVisibility.Auto to ScrollbarVisibility.Visible if (result.vertical === ScrollbarVisibility.Auto) {
result.vertical = ScrollbarVisibility.Visible;
}
if (result.horizontal === ScrollbarVisibility.Auto) {
result.horizontal = ScrollbarVisibility.Visible;
} It worked nicely, but the challenge will be to make this conditional on a new user setting called something like Is it feasible to check such a setting here? Or am I too deep in the call stack to get access to settings? |
In #66000 (comment) @isidorn previously said Electron doesn't expose this setting. |
Oh, pardon me. I just flew over this issue without re-reading the history. 😳 |
Setting VSCODE_ALWAYS_SHOW_SCROLLBARS=1 before launching code will turn off the fading scrollbar style.
Tired of this nonsense, I just removed the hiding logic from VS Code myself: In the file resources/app/out/vs/workbench/workbench.desktop.main.js relative to your installation of VS Code, just remove the following part of the code to completely disable the scrollbar hiding for good: ..., being careful not to touch any code before or after! For contextual information around the change, this should change the following string: ... , removing this garish scrollbar fadeout aberration from occurring while editing in VS Code, since there is still, to date, no reliable way to opt out of this behavior (and no, setting the environment variable: VS_CODE_ALWAYS_SHOW_SCROLLBARS=1 and restarting, does not disable scrollbar fadeout, because the commit that implements this apparently has still not been merged into the mainline). In case you are not aware, scrollbars can be made partially transparent, so as not to obscure anything, begging the question of why is it necessary to hide them, ever? |
If you set the vertical option to hidden, the gutter still shows: |
@gbritton1 Set |
This is the main thing bugging me as well. |
The |
@peter-fb: I also believe that the scrollbar is a vital, indispensable information that is relevant to all users – even those who are predominantely using the keyboard for input. |
And why is it not the default behavior to show scrollbars? What's the purpose of hiding that useful information? |
Would it be possible to have a global setting to keep ALL the scrollbars visible at all times? |
Is there a setting for the scrollbar that let's you scroll through your tabs? I tried setting all the horizontal scrollbar settings to |
I would very much appreciate if this setting also applied to all scrollable panels in VS Code. While debugging, I'm repeatedly and helplessly navigating with the mouse into the Variables/Watch/Call Stack panels, aiming at false positions first, because I don't clearly perceive their borders and ranges until the scrollbars slowly blend in. Please have this amended. |
+1 since there is a question to see if more users request it. It would save me a lot of time and frustration to not hover vaguely in the scroll bar area for a few seconds for it to become usable. |
+1 And stop assigning people who know nothing about usability to design your UI. |
If you want to force showing all the scrollbars right fking now (for VSCode Version: 1.85.1, Commit: 0ee08df), do the following hack:
First discovered in SteelBlueVision's reply. |
Thanks, tried that before and it worked. Besides, I think it would be more appropriate to require ugly hacks for hiding the scrollbars, not for bringing them back. |
VSCode Version
Steps to Reproduce
Current Behaviour
In Visual Studio Code, editors' scroll bars auto hide, thereby thwarting targeting the scroll bar handle when moving the mouse.
Expected Behaviour
Visual Studio Code should follow the Windows system setting
Settings > Ease of Access > Display > Automatically hide scrollbar in Windows
Does this issue occur when all extensions are disabled?
The text was updated successfully, but these errors were encountered: