microsoft / vscode

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

Add setting to automatically hide the side bar #3742

Open Nimzozo opened 8 years ago

Nimzozo commented 8 years ago

Would it be possible to add a option to automatically hide the files explorer after a configurable duration ?

isidorn commented 8 years ago

ping @bpasero

bpasero commented 8 years ago

Honestly this seems like a weird setting. There is a keyboard shortcut to just hide the explorer (Cmd+B).

Tyriar commented 8 years ago

@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?

bpasero commented 8 years ago

@Tyriar that makes a lot more sense to me compared to having a fixed timeout :)

bpasero commented 8 years ago

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.

Nimzozo commented 8 years ago

That's right. Maybe I have badly explained.

lllopo commented 8 years ago

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.

volkanunsal commented 7 years ago

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.

Tyriar commented 7 years ago

@volkanunsal that's the "activity bar" with the icons, this one is relevant for what you want https://github.com/Microsoft/vscode/issues/1105

Venryx commented 7 years ago

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 -- although that's another subject.

Venryx commented 7 years ago

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.

richrundmsft commented 7 years ago

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). I ended up doing a web search to find out how to hide the panel (and ended up on this thread)

sjy commented 7 years ago

Perhaps VS code should be available to be customized to auto-hide side bar just like the bahavior of Dock in Mac

Samic8 commented 7 years ago

I would really like this feature. I find having the sidebar open distracting, but often I forget to close. Same goes for the terminal

reynoldsbd3 commented 6 years ago

I would also love to see Visual Studio's "auto hide when focus changes" behavior implemented here.

zer09 commented 6 years ago

Also a suggestion, that it should look like a floating panel, so it wont resize the document page width when it shows or hide.

Deji69 commented 5 years ago

Why do we still not have this? I've literally been waiting years... I found an extension made with the purpose of doing this, but it doesn't work. This is easy stuff and should be built-in so it always works.

Tyriar commented 5 years ago

@Deji69

image

Deji69 commented 5 years ago

@Tyriar Are you suggesting that this project being open source, the request being relatively easy to fulfil (so much so that 3rd parties have done so via extensions that were broken by updates), and easily over 2 years of people asking for this feature count for nothing?

Tyriar commented 5 years ago

@Deji69 I'm suggesting that this is one issue among over 5000 and resources are limited, since you asked why it still hasn't happened.

volkanunsal commented 5 years ago

The absence of this feature is probably the only reason I'm still using SublimeText.

brugner commented 5 years ago

And now emails are raining again..

Deji69 commented 5 years ago

@Tyriar I would happily learn how to contribute just to do it... will that change anything?

Tyriar commented 5 years ago

@isidorn would we accept external PRs for this?

Deji69 commented 5 years ago

is:open created:<=2016-04-01 comments:>10

According to this query, the number of issues as sought after and neglected as this one is a mere 72. So surely that means it should come somewhat soon..?

isidorn commented 5 years ago

@Tyriar depends on the PR quality - so if nice clean and easy will consider it. In the meantime there is the extension which users can use.

Tyriar commented 5 years ago

@Deji69 not sure why you would only classify issues created just before this one to be sought after, comments:>10 and sort:reactions-+1-desc are more realistic queries.

DarkLite1 commented 5 years ago

Ended up here too after extensively searching the web on how to hide the complete panel (Side bar) on the left permanently. It consumes so much space on a small laptop display, very annoying. Glad to see I'm not the only one who wants this request and you're looking for a solution. Really appreciate the effort guys.

serend1p1ty commented 5 years ago

I am waitting for the feature.

athahersirnaik commented 5 years ago

This feature has been implemented

lllopo commented 5 years ago

This feature has been implemented

Hmmm ... I'm on the latest insiders and such feature is nowhere to be seen.

athahersirnaik commented 5 years ago

Sorry, not this one, wrong window and message

kanlukasz commented 5 years ago

I would prefer the sidebar to be open all the time.

I think that the option satisfying everyone would be something like:

with the following options:


Releated ticket: https://github.com/microsoft/vscode/issues/63354

rolurq commented 5 years ago

I would prefer the sidebar to be open all the time.

I think that the option satisfying everyone would be something like:

  • "workbench.startupSidebar"

with the following options:

  • [ ] always (sidebar will always be open each time on startup)
  • [ ] never (never show sidebar on startup)
  • [ ] one (remember state from previous session)

Releated ticket:

63354

I don't think the key is in the startup, at least for me, the desired behavior is during the app normal runtime, maybe what you want is a separate feature from this one.

DarkLite1 commented 5 years ago

I tend to agree with @rolurq . While developing one might decide to have the bar closed. But then when the code is done and a debugging sessions is started it might be convenient to open the side bar to see what's happening. So it's not (only) a decision during startup.

Venryx commented 4 years ago

Auto hide does not make any sence instead of this there should be a floating (small) icon by clicking user can easily hide/show explorer very easily

That's your opinion, but a lot of people disagree. To me, it's distracting and annoying to have to press a hotkey after each time I use the side-bar to perform an action. I'd rather it just disappear as soon as I click away (eg. back into the code editor).

isidorn commented 4 years ago

fyi @joamoreno and @sbatten since this is a popular feature request.

Ciliane commented 4 years ago

i want the same thing too, sidebar appears when you hover over it

LeonhardFeiner commented 4 years ago

I would like to suggest similar behaviour like the Microsoft Office ribbon interface:

ciltocruz commented 4 years ago

Go go go! This would be very interesting. This functionality already exists in other software like Eclipse, Netbeans or similar.

The sidebar should be floating until it disappears by losing focus. It could also remain fixed if there was an icon that leaves it anchored.

The example of the partner mentioning the "Office ribbon" is perfect.

mydmdm commented 4 years ago

This feature is really friendly for the users with only small display screen. @Venryx v-tools is helpful, however, it fails in my vsc for some time

Ahmed-Abdelhak commented 4 years ago

if you use Visual Studio and then come to VSCode, you will pain a lot !

i really want this feature, as it is on VS2017 , 2019

diegochavez commented 4 years ago

Just use vtools plugin works fine, it's easier that add more complexity on vscode code base.

https://marketplace.visualstudio.com/items?itemName=venryx.vscode-vtools

lllopo commented 4 years ago

Just use vtools plugin works fine, it's easier that add more complexity on vscode code base.

https://marketplace.visualstudio.com/items?itemName=venryx.vscode-vtools

It definitely doesn't work fine ... when it works at all.

diegochavez commented 4 years ago

Just use vtools plugin works fine, it's easier that add more complexity on vscode code base. https://marketplace.visualstudio.com/items?itemName=venryx.vscode-vtools

It definitely doesn't work fine ... when it works at all.

Well after install you need to restart your vscode because it affects some behaviour on the interface. I been using for long time.

lllopo commented 4 years ago

@diegochavez I know this very well. First and foremost - it doesn't work well. It relies on focusing the editor to hide the sidebar, instead of hiding it on any click outside of it. This is definitely not enough by any means and even so - it even doesn't kick in well each and every time when you focus the editor. Doesn't mentioning there were vast periods of time when the plugin was not compatible with the insiders editions, so - unusable.

piercy commented 4 years ago

Would be really handy if vscode supported this. I've started to develop on a portrait display. I very rarely use the file explorer, instead use shortcuts to open files but i do use the search window. On a portrait display, and auto hiding sidebar is beneficial due to the limited amount of horizontal real estate. I know i could just use a landscape display, but editing code files on a portrait display is quite nice, so sticking with it for now.

It seems like a useful feature and judging by the amount of comments on here, would go down well with people.

stefaanv commented 4 years ago

Would be a very usefull feature

stefaanMLB commented 4 years ago

I'd much appreciate the option for the explorer to close after a selection (opening a file) has been made in the explorer

icnahom commented 4 years ago

Why is this still not available?