question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sidebar defaultWidth, View-Specific Sidebar widths, & View-Specific Sidebar defaultWidths

See original GitHub issue

Summary

It’d be awesome if each Activity Bar View(ie. “File Explorer”, “Search”, “Source Control”, “Extensions”)'s Sidebar has its own unique width, that can be adjusted:

  1. manually (via the sash)
  2. using defaults in the User/Workspace settings
  3. or both

Reasoning

When switching between the different Views in the Activity Bar, there are different Sidebar widths that are more conducive to productively using each View (a value, which, will vary per user’s preferences and/or per workspace’s details). For example, personally for my workspace, the “Source Control” View needs more space than the “File Explorer” View does. So, when I switch between the two, I have to adjust the Sidebar width manually (via the sash) every time if I want to maximize screen space with the “File Explorer” View or efficiently use the wider “Source Control” View.

Current Behavior

  • The Sidebar default width cannot be adjusted in User/Workspace settings.
  • The Sidebar width can be adjusted manually (via the sash), but it is not preserved on close/reopen of VSCode and is the same regardless of which View is selected.

Desired Behavior

  • The Sidebar default width can be configured in User & Workspace settings.
  • When switching between Views in the Activity Bar, each View’s Sidebar can have its own unique width.
  • Manual changes to each View’s Sidebar width (via the sash) can be left unpreserved, preserved in local storage temporarily, or preserved permanently in User/Workspace settings.
  • Each View’s Sidebar’s default width can be configured in User or Workspace settings.
  • Views that are created by 3rd party extensions can have their Sidebars be configured the same way.

Potential (example) Settings

General

  • "workbench.sidebar.defaultWidth" = 400 [default: {whateverVSCodeCurrentlyUses}] (the default width of every View’s Sidebar that does not have a custom value set to it)
  • "workbench.sidebar.useViewSpecificSidebarWidths" = true [default: false] (make each View’s Sidebar have its own unique width)
  • "workbench.sidebar.autoAssignViewDefaultWidths" = true [default: false] (assign the defaultWidth setting of a View every time there is a manual change via the sash to a View’s Sidebar width) (requires workbench.sidebar.useViewSpecificSidebarWidths = true)

View-Specific Sidebar Default Widths

(require workbench.sidebar.useViewSpecificSidebarWidths = true)

  • "workbench.sidebar.explorer.defaultWidth" = 500 [default: workbench.sidebar.defaultWidth] (the default width of the “File Explorer” View’s Sidebar)
  • "workbench.sidebar.scm.defaultWidth" = 600 [default: workbench.sidebar.defaultWidth] (the default width of the “Source Control” View’s Sidebar)
  • "workbench.sidebar.search.defaultWidth" = 900 [default: workbench.sidebar.defaultWidth] (the default width of the “Search” View’s Sidebar)
  • "workbench.sidebar.extensions.defaultWidth" = 550 [default: workbench.sidebar.defaultWidth] (the default width of the “Extensions” View’s Sidebar)
  • "workbench.sidebar.gitlens.defaultWidth" = 870 [default: workbench.sidebar.defaultWidth] (the default width of the “GitLens” View’s Sidebar)
  • "workbench.sidebar.{anyActivityBarView}.defaultWidth" = 700 [default: workbench.sidebar.defaultWidth] (the default width of the “{anyActivityBarView}” View’s Sidebar)

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:29
  • Comments:6

github_iconTop GitHub Comments

5reactions
VSCodeTriageBotcommented, Nov 30, 2022

🙂 This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

2reactions
OzWookieecommented, Nov 22, 2022

Oh man, the number of times that I resize the SVN or extensions sidebar! Yes please 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sidebar Widths - GeneratePress documentation
You can adjust the width of your sidebars in Customize > Layout > Sidebars. The widths are percentage based, and the width of...
Read more >
Is there a way to widen the Jira Software Cloud Sidebar?
I see I can collapse and expand it to some default widths but when I drag the sidebar <-> it snaps back to...
Read more >
Change Finder Sidebar Default Width | Sayz Lim
If you've changed Finder sidebar width before, you should know that the new width doesn't apply to all folders. Each folder has its...
Read more >
How do I save jupyterlab's sidebar width, or set the default ...
I recently installed jupyterlab3, which has a lot of great plugins. But I found that I couldn't save its sidebar width Settings, ...
Read more >
How to change the default width of sidebar in version 1.12.0?
Ask the community or our support engineers for answers to questions. In the previous version, the method mentioned in this issue(Ability to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found