-
Notifications
You must be signed in to change notification settings - Fork 28.2k
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
Add setting to automatically hide the side bar #3742
Comments
ping @bpasero |
Honestly this seems like a weird setting. There is a keyboard shortcut to just hide the explorer (Cmd+B). |
@bpasero seems reasonable, auto-hide similar to how the taskbar in all major OS' can be setup to hide and display when you hover over the edge? |
@Tyriar that makes a lot more sense to me compared to having a fixed timeout :) |
Even more interesting would be in that mode to maybe not push the editor to the right, but rather overlay the contents, since it is getting dismissed quickly after when moving focus out. |
That's right. Maybe I have badly explained. |
Visual Studio panels 'auto-hide' : you click on it - it shows, you click outside - it goes is pretty neat and more than enough. As of 'push editor to the right' - this more a separate option to 'dock' the panels or not. Would be also nice to have, though. |
This would be super useful. It would also be neat to hide the sidebar entirely. The big icons are simply too distracting. I never use the debugger, and never use Git from the sidebar, and the search icon isn't very useful either. |
@volkanunsal that's the "activity bar" with the icons, this one is relevant for what you want #1105 |
I'd prefer this way as well, having it auto-hide when the user clicks outside of the sidebar. Visual Studio allows this approach, and it's really convenient as it lets me have many different types of panels easily accessible, without cutting out from the main text editor size. (most of the time, you only need a panel open very briefly to change or check something, then you jump back into the code and don't need it on-screen any more) It would also be nice to let extensions add their own panels to the activity/sidebar, as in Visual Studio -- |
Went ahead and made an extension for this: https://marketplace.visualstudio.com/items?itemName=venryx.vscode-vtools It's not perfect -- it only closes the side-bar when the user changes the selection (eg, clicking or dragging at a new location) -- but it achieves the basic function. Built-in support is still ideal, but this should help until then. |
Always having explorer open seems such a waste of space -- I want the focus to be on the document I'm working on, but by default 20% of my screen is taken up by Explorer. The ctrl/cmd + B option to show/hide isn't very discoverable - my first instinct was to try and use View -> Explorer [ctrl/cmd + shift + E] to be a toggle (but it isn't). |
Perhaps VS code should be available to be customized to auto-hide side bar just like the bahavior of Dock in Mac |
I would really like this feature. I find having the sidebar open distracting, but often I forget to close. Same goes for the terminal |
I would also love to see Visual Studio's "auto hide when focus changes" behavior implemented here. |
Also a suggestion, that it should look like a floating panel, so it wont resize the document page width when it shows or hide. |
This would be particularly helpful with Source Control view occupying the sidebar content. I like it to be quite wide to see the full branch name etc. but then it leaves little room for the file content on the right. Auto-hiding would solve that nicely! |
I'd love to be able to hide it based on an action, e.g. opening a file. edit: This is possible with a shortcut + an extension: (multi-command): {
"key": "o",
"command": "extension.multiCommand.execute",
"args": {
"sequence": [
"explorer.openAndPassFocus",
"workbench.action.toggleSidebarVisibility",
]
},
"when": "!inputFocus && filesExplorerFocus"
}, |
Hey! What's the status of this issue? It's been in the backlog for almost 7 years now 🤔 cc/ @bpasero |
When in zen mode, it would also be very pleasant. Just reaching the edge of the screen would show the corresponding sidebar. You can focus on code and see extra informations like the files list or the outline right when you need it. Very clean IMO. You will need to provide a configurable threshold for the edge cause distinct use cases might need different values. For instance if your code occupy the whole width you want a very small threshold. Maybe even 0. But if you are in zen mode and you have extra space on the left and the right, maybe you want to show the sidebar very soon like at 100px or 200px of the edge. You may want one sidebar to act that way and another to be always visible. It is probably better to make that mode an option of the sidebar. In general, I like vscode but it lacks personalisation in that domain. I would love being able to detach the terminal too (whether I have 2 screens or not). That's the same need at heart: being able to adapt vscode to your configuration (space, number of screens, personal workflow, etc.). |
The status is: they don't care 🥲 Maybe if someone propose something they can label as a "fancy AI feature" it get some attention... |
Is there any PR already attached for this feature, else I would be happy to create a PR (would need some guidance though). Would the members of VSCode need this feature to be done or this feature request would be stranded like numerous feature requests? |
I too would love to see this feature; the offered extensions are limited, primarily because they hide on click instead of on editor focus and I don't like using my mouse while programming, preferring keyboard shortcuts. It should be noted this is not just for small screens. I have a 55" monitor, but I use only a section of it for code editing, with the space around the editor for other windows. So I edit in a 1800x1400 window despite having a large 4K monitor. @SkyaTura : I don't think it's because "they" don't care -- when there's lots to do things get overlooked, even very useful things. Personally, I think it's a little on the arrogant side to whine about software you are getting for free, even more so if you are a developer yourself and should therefore understand the demands made on a devs time and should appreciate volunteer efforts and/or a company's donations of human resources. |
I understand your point, sorry if what I said war offensive in any way to anyone who has even once been related to this project. I do understand the collective effort made to get to the product we have today, and I appreciate all teams involved in that, however, I also understand that VSCode is not an independent project maintained by a couple people living in there basements... It's not only an open project, but a full product of one of the biggest tech industries in the planet, and also rentable somehow. There will be decision-making based on money and marketing, and a feature like this, no matter how important would be for us, if it's not relevant in this parameters, will never be priority. (unless, maybe, if a blessed soul decides to try submitting a PR) Well, I feel that this may sound arrogant again, so I want to explicit that I'm just trying to be realistic and sometimes I don't know the right words to argument, but I honestly understood what you meant. I'm sorry in advance if that is the case on this message again, but I won't argue again because I don't want to diverge the focus on the issue subject. |
I have a solution for this via autohotkey, I still like the auto hide sidebar extension as well, at least for the left sidebar, doesn't support others. I have mapped hotkeys to map to alt-[, alt-] and alt-' that are associated w/ the left, right sidebars and the tab bar area. toggleSidebars.ahk
keybindings.json
|
I got my workaround by using BetterTouchTool triggers on mac. Still miss a integrated solution tho |
Yea, I am about to work something out for Linux as well when using freerdp as the mouse doesn't always rest where it needs to, but on macOS & jump desktop it does seem to work even if the mouse exits outside of the window. But yea I use BetterTouchTool as well on macOS when I need to. I think on linux the easiest solution will be to use devilspie2 and a lua based script, secondarily autokey or bash with xbindkeys and xdotool, but hoping that devilspie2 is good enough to handle it. |
A follow up solution for Linux distros running under X11, not wayland. Just make sure to set your hotkeys to match in vscode. Vi ~/sidetriggers.sh (then chmod +x the file & run it)
|
hotkey to open the sidebar, key down to the file you want to open, hit enter, file opens, sidebar closes. why would I want to waste another action to close it again? |
Is there any progress on this? Keeping the file explorer open while editing code is a waste of real estate. It also affects my focus. Can someone share a working extension for the time being, I tried this: Auto Toggle Sidebar, but it didn't seem to work. |
This is the one I use: https://marketplace.visualstudio.com/items?itemName=sirmspencer.vscode-autohide It's an extended version (by someone else) of an extension I had made a long time ago for it. (which I think I linked to years ago in this thread haha) |
Hehe, nice, Thanks @Venryx . It worked like a charm, also I have more real estate now. Thanks @sirmspencer Share before, and after results: BeforeAfterI hope Microsoft can fix this with the help of their AIs, if not possible by DEVs 👏 |
@optimbro How and why exactly should an AI be used for something that is obviously already done and only needs implementation? |
"Implementation" is the issue; it has not been implemented. It's already been more than 7 years. Maybe AI can help here? How? If I knew I could just send a pull request. |
It would be great if one could just hover on the retracted sidebar to fully reveal it. |
Looking for an auto-hide like in the Arc Browser or the Mac Dock... |
Autohide (or show on hover) for the Sidebar + Activity bar would be amazing for us with vertical monitors. |
I defenitly agree on that. Sidebar needs to not only hide, but appear on mouse hover, and disapear when whe mouse is anywhere else than over it. It would be even more usefull on small screen or on the go. Isn't there any extension that does this ? |
This is specially useful on vertical monitors, I don't think an extension will be able to do it as a "floating" bar, not pushing the editor panel to the right. Current autohide extension (and forks) just toggle the visibility of the panel (usually same as doing it via hotkey). You can search for "autohide" in extension marketplace to find them. I would also love to be able to enable autohide mode if the window is taller than wide (vertical form factor). A man can dream; (I guess the fact that is more than 7 years old and hasn't been closed yet gives me hope) :-P |
like they did on Edge browser, when you hover over copilot icon it does the same thing. |
Would it be possible to add a option to automatically hide the files explorer after a configurable duration ?
The text was updated successfully, but these errors were encountered: