You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Mouse scroll wheel on tabs should switch tabs #13902
Just like in Chrome browser, if you put your mouse cursor over the tabs and then scroll, it changes between the tabs. Would be convenient if the same happened on the tabs in vscode.
Reacted by Alex McCausland, ownagedj, Zach Moazeni, Erwinson Pagtalunan, yPhil, Joshua Bemenderfer, Christian Muehlhaeuser, pythoninja, Alexey Strokach, Jason Hicks and 28 more
Reacted by lizz, Andrei Simionescu and Jan Niklas Hasse
Reacted by Niklas Higi, Josh Parsons and Vitalii Dub
Currently, when there are more tabs so that a horizontal scrollbar appears, scrolling will control this scrollbar. Switching tabs would clash with that feature.
I think the behavior should stay as it is now, as otherwise one might very easily switch tabs by accident, if his mouse is over the tab bar (e. g. after switching tabs by clicking).
Moving the set of visible tabs (the way it operates right now) is how Firefox handles their tabs, while moving between tabs is how Chrome handles their tabs.
I'd say that it's more useful to move between tabs since the majority of the time that your mouse is in the tab bar you want to switch to a tab that you can actually already see in the tab bar. And most of the time that you're switching tabs you're switching to one that was recently used, so it would already be in the visible portion of the tab bar (rather than out of scrollbar focus).
And if I do want to move to a tab that isn't in the visible portion of the tab bar, I would probably use another way to get there (because who even remembers which tabs are open when you're dealing with lots of tabs?), like a quick open dialog.
Because of vscode's preview mode, where it doesn't keep the tab open unless you want it to, so you'll have less tabs open in vscode than if you were using another editor, so it also makes it better to choose a default that is relevant to this case.
At the very least, it should be a configurable option what the scroll wheel does.
And most of the time that you're switching tabs you're switching to one that was recently used, so it would already be in the visible portion of the tab bar (rather than out of scrollbar focus).
Why would that be the case? Tabs aren't ordered by LRU, so the tab you recently used might as well be outside of the visible portion.
At the very least, it should be a configurable option what the scroll wheel does.
Would it be possible to expose the tab switch functionality through the menu? Like say for Mac OS, there should be a "Select Next/Previous Tab" option under "Window" and let the user bind it however they want to?
As it is right now, the VSC "Window" menu options are quite empty in Mac OS.
Would it be possible to expose the tab switch functionality through the menu? Like say for Mac OS, there should be a "Select Next/Previous Tab" option under "Window" and let the user bind it however they want to?
FYI, on Sublime Text, you can hold right mouse button, and use the mouse wheel to switch tabs, which I find it pretty nice because I don't need to orient my mouse cursor in the top tiny area.
As for now, the proposed behavior does not seem to be intuitive to me.
Get a better mouse then, no cares if you don't find a optional improvement useful or not, fact is many others who aren't newbs will find it an improvement.
You know what I call incredibly un-intuitive... garbage ux and a tabbar that sucks....
...1. Does not even have a drop down icon on the far right side for all the document tabs that can no longer be displayed on the tabbar for quicker access in selecting.. because dolt design corp somehow think scrolling the tabbar is intuitive? no its rubbish and always has been unless you stuck using some touchpad rubbish where you can't use a mouse with a mousewheel. Using the mousewheel to select tabs has been the better way for well over a decade in any decent software that has implemented tabs...
And for reference a dropmenu icon on the end of the tabbar to show non visible tabbed documents has been implemented in VisualStudio, Firefox, Jetbrains, Eclipse and numerous other software packages that somehow managed to put a icon with a dropdown menu to show the document tabs that are no longer visible on the tabbbar... and to any derp that says just have the sidebar menu showing with OPEN EDITORS in view for a list view of tabs .. I REPEAT OPEN EDITORS in side bar view is the required.. because it's not like the sidebar is also used for showing addons, and many other views you might be in.. but ooh you've got to many tabs open and the tab document you want can't be seen, lets slowly use this shitty scrolling tabbar garbage ux, or switch sidebar to the Open Editors view so I can find the document tab I'm wanting, and then switch back to the sidebar view I was in before.. because someone overpaid so called professionals can't do there job properly and implement basics that don't suck.
Not to mention they waste more pixel width space than is really needed but offering that up for customization just hasn't happened), along with the tabbbar is used for showing countless things including settings because somehow making dialog windows for such things is so 90's with goolag, msuck flat crap design being peddled everywhere and and where everything needs to be a javascrap infested tab page.. but somehow they can't be seem to make a decent tabbar with the all the features and customization required for it.
how in the hell is it still 2018 and these basics haven't even been done yet?
Decided to change the setting to be a simple boolean and not control the direction of switching. Extracted #96544 for that particular feature as it should also impact the scrollbar scrolling, not just the switching behaviour.
To enable this feature you need to change your existing setting to:
Activity
jhasse commentedon Oct 19, 2016
Currently, when there are more tabs so that a horizontal scrollbar appears, scrolling will control this scrollbar. Switching tabs would clash with that feature.
I think the behavior should stay as it is now, as otherwise one might very easily switch tabs by accident, if his mouse is over the tab bar (e. g. after switching tabs by clicking).
rightaway commentedon Oct 19, 2016
Moving the set of visible tabs (the way it operates right now) is how Firefox handles their tabs, while moving between tabs is how Chrome handles their tabs.
I'd say that it's more useful to move between tabs since the majority of the time that your mouse is in the tab bar you want to switch to a tab that you can actually already see in the tab bar. And most of the time that you're switching tabs you're switching to one that was recently used, so it would already be in the visible portion of the tab bar (rather than out of scrollbar focus).
And if I do want to move to a tab that isn't in the visible portion of the tab bar, I would probably use another way to get there (because who even remembers which tabs are open when you're dealing with lots of tabs?), like a quick open dialog.
Because of vscode's preview mode, where it doesn't keep the tab open unless you want it to, so you'll have less tabs open in vscode than if you were using another editor, so it also makes it better to choose a default that is relevant to this case.
At the very least, it should be a configurable option what the scroll wheel does.
jhasse commentedon Oct 19, 2016
Why would that be the case? Tabs aren't ordered by LRU, so the tab you recently used might as well be outside of the visible portion.
Agreed. Also see #3130.
clujin commentedon Feb 24, 2017
Would it be possible to expose the tab switch functionality through the menu? Like say for Mac OS, there should be a "Select Next/Previous Tab" option under "Window" and let the user bind it however they want to?
As it is right now, the VSC "Window" menu options are quite empty in Mac OS.
rightaway commentedon Apr 3, 2017
Making it customizable like this would be ideal.
XeonG commentedon Jul 12, 2018
Number 1 requested feature for me this along with multiline tabbar
#54182
eikawata commentedon Nov 9, 2018
FYI, on Sublime Text, you can hold right mouse button, and use the mouse wheel to switch tabs, which I find it pretty nice because I don't need to orient my mouse cursor in the top tiny area.
XeonG commentedon Dec 13, 2018
Get a better mouse then, no cares if you don't find a optional improvement useful or not, fact is many others who aren't newbs will find it an improvement.
You know what I call incredibly un-intuitive... garbage ux and a tabbar that sucks....
...1. Does not even have a drop down icon on the far right side for all the document tabs that can no longer be displayed on the tabbar for quicker access in selecting.. because dolt design corp somehow think scrolling the tabbar is intuitive? no its rubbish and always has been unless you stuck using some touchpad rubbish where you can't use a mouse with a mousewheel. Using the mousewheel to select tabs has been the better way for well over a decade in any decent software that has implemented tabs...
And for reference a dropmenu icon on the end of the tabbar to show non visible tabbed documents has been implemented in VisualStudio, Firefox, Jetbrains, Eclipse and numerous other software packages that somehow managed to put a icon with a dropdown menu to show the document tabs that are no longer visible on the tabbbar... and to any derp that says just have the sidebar menu showing with OPEN EDITORS in view for a list view of tabs .. I REPEAT OPEN EDITORS in side bar view is the required.. because it's not like the sidebar is also used for showing addons, and many other views you might be in.. but ooh you've got to many tabs open and the tab document you want can't be seen, lets slowly use this shitty scrolling tabbar garbage ux, or switch sidebar to the Open Editors view so I can find the document tab I'm wanting, and then switch back to the sidebar view I was in before.. because someone overpaid so called professionals can't do there job properly and implement basics that don't suck.
Not to mention they waste more pixel width space than is really needed but offering that up for customization just hasn't happened), along with the tabbbar is used for showing countless things including settings because somehow making dialog windows for such things is so 90's with goolag, msuck flat crap design being peddled everywhere and and where everything needs to be a javascrap infested tab page.. but somehow they can't be seem to make a decent tabbar with the all the features and customization required for it.
#54182
pdf commentedon Dec 13, 2018
XeonG you might want to consider dropping the snarky and aggressive tone. And if you feel so strongly about this, why not contribute a patch?
27 remaining items
tabs - add setting to switch tabs with mouse-wheel (#13902)
tabs - add setting to switch tabs with mouse-wheel (#13902) (#95222)
bpasero commentedon Apr 14, 2020
Will be in tomorrows insider build to try out.
bpasero commentedon Apr 29, 2020
Decided to change the setting to be a simple
booleanand not control the direction of switching. Extracted #96544 for that particular feature as it should also impact the scrollbar scrolling, not just the switching behaviour.To enable this feature you need to change your existing setting to:
"workbench.editor.scrollToSwitchTabs": truestarting with tomorrows insider build.
rightaway commentedon Apr 29, 2020
Benjamin Pasero (@bpasero) For default scroll direction, when you scroll up does it move to the left? That's the default in most applications.
bpasero commentedon Apr 29, 2020
rightaway yes, the default is to switch to tab on the left for scrolling up and right for down.