-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Allow to close multiple tabs without moving the mouse after closing one #40290
Comments
This doesn't exactly solve this problem but in case you didn't know VSCode supports the Cmd+W keyboard shortcut that I use in chrome to close multiple tabs in a row. This helps me a lot with closing a bunch at once. |
Thanks @feargswalsh92, I use that shortcut all the time but sometimes using the mouse is more convenient. :) |
Is there any update here? I couldn't find any recent conversations but this is something that still bugs me. |
Would love an update on this. |
There is an alternative - workbench.editor.tabCloseButton can be positioned on the left, that way the mouse pointer always remains in the same place, but a user naturally gravitates to the right to close a tab, so it would be quicker, but just slightly annoying. |
Atom implemented something similar here: atom/tabs#300 I've moved to VS Code from frustration with Atom's slowness, but this feature is a +💯 |
I'd love this feature! |
For those of you looking for similar functionality (i.e., selection of multiple tabs), please see the feature request here, and upvote it if you would like to see this feature added. |
@Kenobi-the-2nd That issue was automatically closed and conversation locked, but it appears to have received the requisite number of votes (21 of 20 required) for consideration in the backlog. Do you know if there is a way to have it reopened for consideration? I would love both that functionality and the one described in this issue, but it seems that is no longer a possibility 😞 It appears that someone even made an attempt to implement it (!) based on the linked commit: CSCD01@5966234 |
Moreover, this issue has 50+ upvotes too. |
If you want to close the tab by tab and not move the cursor, you can use the middle mouse button (clickable scroll button). You can click anywhere on the tab and then it will close. |
Looks like it's been more than a year since this was last commented on. I'd like to see this feature too, any update? |
Any update on this? Really frustrating managing tabs in vscode. |
Any updates? |
How can we put together/fund a bounty to have this issue fixed and addressed? It has 90+ upvotes, and been open for almost 5 years, but still hasn't been picked up. At this point I am willing to pay for having this solved, as it drives me bonkers every time I want to close a set of tabs. |
Another solution could be having the close button on the left, like Opera browser does. |
@ZioCain this is already an option: |
Related on Stack Overflow: Is there a way to make all editor tabs in VS Code's workbench the same width? |
@bpasero would it be OK if I pick up #40750 and bring it up to current vscode as a solution to this? Chrome-like nice responsive tabs don't seem to be in the pipeline, and recently every time I was irritated by the differently sized tabs, I thought that simply fixed-size tabs would be quite alright for me. |
@bpasero yes, it would be an option "fixed" in there, with a further option for the actual width the user wants. |
This is meant at least partially to address microsoft#40290 and is a continuation of the unfinished work from microsoft#40750.
* Add settings for fixed-width tabs This is meant at least partially to address #40290 and is a continuation of the unfinished work from #40750. * Only apply fixed width when the setting is on * Implement chrome-like tab width behavior Tabs shrink uniformly (down to a limit) but stay fixed-width when the mouse is over the tab bar. * Rename width setting to max width * Make the ifs more readable * Have event handlers only if the option is set * 🎨 * Handle sizing artifacts present with wrapping tabs To achieve this, it's best to remove the transition delay. * Rename setting to apply only for fixed-sized tabs * Set default fixed max tab width to 160px * Minor code tweaks from review comments * formatting Co-authored-by: Benjamin Pasero <benjamin.pasero@gmail.com> * Use disposable listeners * Remove redundant check for last-in-row * Apply fade gradient from shrink tabSizing to fixed * Trying to make the code cleaner and understandable * Remove transition On advice of @bpasero, removed transition because the editor doesn't really use transition that much. * some cleanup * fix typo * Simplify workaround for the overflow issue * 💄 * 💄 * Let the tabs fix their width before closing the editor * 💄 --------- Co-authored-by: Benjamin Pasero <benjamin.pasero@microsoft.com> Co-authored-by: Benjamin Pasero <benjamin.pasero@gmail.com>
A new
Thanks Jacek! |
This is amazing. Thanks @jacekkopecky and @bpasero!! 🎉 |
Hi! I love the new
shrink
tab sizing in the latest version of Code. It feels much more natural to me because I now have a much better idea of which editors are open in which pane and how many are open in total.There's an awesome thing that Chrome does when you're closing tabs – it doesn't resize the tabs while you're closing them. This allows you to close many tabs by just clicking repeatedly. It's a small details but it makes the experience a lot smoother in my opinion:
For comparison, here is how closing multiple tabs currently behaves in VS Code:
I think the behaviour is something like this:
The text was updated successfully, but these errors were encountered: