microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.95k stars 29.18k forks source link

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

Open bradenbiz opened 2 years ago

bradenbiz commented 2 years ago

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

Desired Behavior

Potential (example) Settings

General

vscodenpa commented 2 years ago

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

zackarydev commented 2 years ago

Either we have default widths, or the editor can remember the last width used.

bradenbiz commented 2 years ago

@ZackTherrien Yes, but the point of my suggestions is that setting the default width of a view and remembering the last width of a view are the same thing.

OzWookiee commented 1 year ago

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

vscodenpa commented 1 year ago

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

vscodenpa commented 1 year ago

:slightly_smiling_face: 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!

starball5 commented 1 year ago

Related Stack Overflow questions:

krishCoolCoder commented 1 year ago

Hello all, Kindly let me know if this feature is developed. I am looking foward to config a hot key to access and resize the side panel in vsc so eagerly. I have to search for that little mouse pointer to navigate around just to resize.

mdigital123 commented 1 year ago

for the love of all that is holy please add this, its been years

devklepacki commented 1 year ago

Yes, we need this. How on earth do we still have to resize the sidebar each time the view is switched between Debug/Explorer/Chat/whatever?

kodmanyagha commented 1 year ago

Yes, we want this.

starball5 commented 12 months ago

Note: The same(?) request was closed as out-of-scope in 2016: #12446, which had a duplicate, #15832

vruyr commented 11 months ago

The comment mentioned 6-12 month roadmap. So hopefully this has a chance of getting some attention.

OliverZott commented 11 months ago

Every single time switching between Explorer and Debugger I have to resize. I really hope this gets some attention in the near future.

PaulMcInnis commented 11 months ago

++++ disappointed that we are all required to waste time resizing, especially with the copilot chat default location being in the sidebar.

You really want a different size for that compared to a file tree...

Gatinoko commented 9 months ago

Been waiting for this for years, I hate having to expand a bunch of tabs everytime I switch any views whatsoever.

devklepacki commented 9 months ago

This is ridiculous, especially since there's Copilot living in there as well. I can't believe nobody in MS has this issue. How do we get someone to make it happen? Like tag @Microsoft or @vscodeteam or something, lol

onurkerimov commented 9 months ago

We definitely need this. I keep coming back here to check if it has been finally resolved. It's extremely annoying to shrink the sidebar every time when opening a project, switching screens, etc.

emvaized commented 8 months ago

Super useful feature. Especially if it will work inabtrusively, by simply restoring the last set width for each sidebar panel. I hope it gets more attention from developers.

totkeks commented 7 months ago

Just had exactly this issue with extension view vs explorer view. The former is better useable when wider, e.g. using auto-width when double clicking the sash, while the latter requires less space, also using auto-width. Could really use this feature.

jda0 commented 7 months ago

@totkeks slight tangent but addressed this pain point for me - vscode finally added a secondary sidebar, maybe moving extension mode to that would help you out?

+1 on ticket though, I'd love to pin my sidebar widths

totkeks commented 7 months ago

@totkeks slight tangent but addressed this pain point for me - vscode finally added a secondary sidebar, maybe moving extension mode to that would help you out?

Thanks for the hint. It might work as a workaround for me, though I'm currently using Copilot Chat in the secondary sidebar and plan to keep it there, once I upgrade from 16:9 to 21:9 resolution, as this would allow me to easily fit primary sidebar with explorer or git or debugger, two editor windows with the terminal below them, and the secondary bar on the right side.

So, for me the view-specific widths would still be more helpful. Then I can just go to the view I want, e.g. Extensions or Debugger, this will resize the editor/terminal area (I guess?), and when I jump back to file explorer everything should be as it was before.

webstorybegin commented 6 months ago

I work in a team of 11 frontend developers, and all of them are on their knees asking you to implement memorising or manually setting a fixed sidebar width !

TerryCM commented 6 months ago

Still waiting for this!

zamuuu commented 5 months ago

Still waiting VS Code...

DannyTheHippo commented 5 months ago

same, still waiting. please add this feature

n1k0 commented 4 months ago

This has been a nightmare when switching screens using different resolutions for 2 years now, could we please have an update? Having a setting for specifying a fixed sidebar width doesn't sound like a super complicated thing to implement while nearly 200 people have thumbed up the issue. It'd be very nice to have some updates on why it isn't there just yet and how we could help it moving forward. Thanks for your understanding 🙏

DavidOsparks commented 4 months ago

When VSCode working with a notebook and an external monitor, it's a hell. Because I put VSCode windows in the external monitor, but when the monitor is unplugged, they will go back to the screen of notebook, every time the external monitor is plugged in or unplugged, the width of sidebar is gone... and this will be happened everyday.

FloppyDisco commented 2 months ago

yea. upvote this for sure.

not a great solution, and definitely would prefer a persistent sidebar width for each view, but i found unassigned commands: workbench.action.increaseViewSize and workbench.action.decreaseViewSize

atleast i don't have to go for the mouse and the command works with both the primary and secondary sidebars, but it is still annoying

{
        "key": "shift+cmd+\\",
        "command": "workbench.action.increaseViewSize",
        "when": "sideBarVisible || auxiliaryBarVisible"
    },
    {
        "key": "shift+cmd+/",
        "command": "workbench.action.decreaseViewSize",
        "when": "sideBarVisible || auxiliaryBarVisible"
    },
    {
        "key": "cmd+b",
        "command": "workbench.action.toggleAuxiliaryBar",
        "when": "auxiliaryBarVisible"
    },

i'm driving a ZSA voyager so my / and \ are more conveniently located, but the third one to toggle the auxiliary bar closed is pretty clutch, it saves having to remember a different keybinding

ilyakonrad commented 1 month ago

+1 on this one.

It is extremely annoying to stretch the sidebar (where the folder tree is) manually to an adequate width every time I open another project in a new window via "Open recent".

Not only should it open fullscreen right away, like the current project is, but also the sizing of panels should be the same as well.

Like, what the hell is this?

image
mrivanandreev commented 1 month ago

@ilyakonrad I think this setting would be a good fit for your case: "window.newWindowDimensions": "maximized". This annoys me too, and I just found a solution to this problem in the documentation

ilyakonrad commented 1 month ago

@mrivanandreev Thanks a lot! Works like a charm!

AurevoirXavier commented 1 month ago

In Zed, we have:

"centered_layout": {
    "left_padding": 0.25,
    "right_padding": 0.25
},

Accepting a ratio as the arg is also a good choice.

K2adir commented 2 weeks ago

+1 up for this request. Now, with AI on the sidebar this feature has become even more crucial