Skip to content

Implement new option to control title scrollbar visibility #246161

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

terreng
Copy link

@terreng terreng commented Apr 10, 2025

Closes #246160

Adds a new option, workbench.editor.titleScrollbarVisibility, to control the visibility of the scrollbars used for tabs and breadcrumbs in the editor title area. Possible options are auto, visible, and hidden.

This option mirrors the behavior of an existing option, editor.scrollbar.horizontal.

How to test:

  • Use all default options.
  • Open many tabs in the editor until a scrollbar appears. Alternatively, shrink the width of the window.
  • Open a file that creates a long breadcrumb that requires scrolling. See the example file below.
  • Observe that by default, the scrollbars appear only when you hover.
  • Change the new workbench.editor.titleScrollbarVisibility option to visible or hidden and test the behavior.
File that creates a long breadcrumb for testing

You must save it as a file and open it in order for the breadcrumbs to appear. Place your cursor in the middle of the inner function in order for the breadcrumbs to appear.

example.js

function superDuperLongOuterFunctionNameToMakeTheBreadcrumbHaveToScroll() {
  function superLongInnerFunctionNameToMakeTheBreadcrumbHaveToScroll() {
  	
  }
}

Screen recording that demonstrates the new option:

Screen.Recording.2025-04-09.at.7.00.33.PM.mov

@terreng
Copy link
Author

terreng commented Apr 10, 2025

@microsoft-github-policy-service agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New option to control title scrollbar visibility
3 participants