Skip to content

Mouse scroll wheel on tabs should switch tabs #13902

Closed

Description

@rightaway

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.

Activity

  1. added
    feature-request
    workbench-tabs
    on Oct 17, 2016
  2. jhasse commented on Oct 19, 2016

    @jhasse
    Contributor

    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).

  3. rightaway commented on Oct 19, 2016

    @rightaway
    Author

    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.

  4. jhasse commented on Oct 19, 2016

    @jhasse
    Contributor

    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.

    Agreed. Also see #3130.

  5. clujin commented on Feb 24, 2017

    @clujin

    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.

  6. rightaway commented on Apr 3, 2017

    @rightaway
    Author

    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?

    Making it customizable like this would be ideal.

  7. XeonG commented on Jul 12, 2018

    @XeonG

    Number 1 requested feature for me this along with multiline tabbar

    #54182

  8. eikawata commented on Nov 9, 2018

    @eikawata

    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.

  9. XeonG commented on Dec 13, 2018

    @XeonG

    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.

    1. how in the hell is it still 2018 and these basics haven't even been done yet?

    #54182

  10. pdf commented on Dec 13, 2018

    @pdf

    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?

  11. 27 remaining items

  12. bpasero commented on Apr 14, 2020

    @bpasero
    Contributor

    Will be in tomorrows insider build to try out.

  13. bpasero commented on Apr 29, 2020

    @bpasero
    Contributor

    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:

    "workbench.editor.scrollToSwitchTabs": true

    starting with tomorrows insider build.

  14. rightaway commented on Apr 29, 2020

    @rightaway
    Author

    Benjamin Pasero (@bpasero) For default scroll direction, when you scroll up does it move to the left? That's the default in most applications.

  15. bpasero commented on Apr 29, 2020

    @bpasero
    Contributor

    rightaway yes, the default is to switch to tab on the left for scrolling up and right for down.

  16. added
    on-release-notes
    on May 1, 2020
  17. locked and limited conversation to collaborators on May 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requeston-release-noteson-testplanworkbench-tabs

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions