Skip to content

Allow tabs to wrap to multi-line #70413

Closed

Description

@illz

I almost always have more tabs open than fit in the horizontal space provided. I have seen the thread on shrinking tabs to try to fit them in one line #15048, and I've also seen this closed feature request for what I'm asking for - #32836. That issue was closed saying there would be no changes for 6-12 months, and it has been around 15 months now so wanted to reopen discussion.

JetBrains IDEs added this a few years ago - simple config option to wrap open tabs to multiple lines rather than extending indefinitely horizontally, forcing a horizontal scroll or use of the Open Editors section in the left bar. While the Open Editors block is a nice idea, I've spent so many years switching via tabs (and continue to do so in all my other editors) that I'm requesting a better solution.

Activity

  1. added
    feature-request
    workbench-tabs
    on Mar 14, 2019
  2. hugodichon commented on May 1, 2019

    @hugodichon

    For sure that is a really basic and essential functionality to have. Following up on that for a while now.

  3. joaohonorato commented on May 27, 2019

    @joaohonorato

    Can this be done any time soon? I just love this feature, it awe me to not see it in vscode.

    Up discussion!

  4. neil-119 commented on Jun 4, 2019

    @neil-119

    Would love to have this as well. We use VS Code mostly for Angular work and we typically have multiple components (TS, HTML, CSS) and services (TS) open at a time, and we like to group relevant tabs together at the top.

  5. helloli commented on Jun 4, 2019

    @helloli

    Although we can use 'Open Editors' or 'Ctrl + Tab' instead, many of us would appreciate it very much if multi-line tabs were supported. Please carefully consider it.

  6. akiraah commented on Jul 17, 2019

    @akiraah

    Has there been any updates regarding this feature? How difficult would it be to create an extension that does this and publish it to the market place ?

  7. im-richard commented on Jul 31, 2019

    @im-richard

    Seems like really simple functionality which is almost a must. I've debated utilizing other apps just for this feature alone because at any given time, I can have roughly 20-30 tabs open, and everything on a single row is just annoying at times.

    Really hope this is looked at as it's literally the only pet-peeve I currently have with vscode.

  8. hugodichon commented on Jul 31, 2019

    @hugodichon

    Come on guys... At least provide some feedback to people expecting that feature one day.
    If I had enough time I would have liked to investigate and submit a pull request, unfortunately I don't have that luxury.
    I would like to add up that Microsoft main development product has that feature built-in since a bunch of years already, it's called Visual Studio.

  9. akiraah commented on Aug 1, 2019

    @akiraah

    I've gave up with VSCODE - this feature should've been built in, even Eclipse has it. I'm using IntelliJ now as a lot of things come out of the box.

  10. lattice0 commented on Aug 7, 2019

    @lattice0

    PLEASE, THIS FEATURE IS EXTREMELY USEFUL

    Look at my firefox: https://imgur.com/a/CKOGGMq

    I can't live without miltiline tabs

    It's VERY annoying to search for the opened tabs by scrolling. I'm almost giving up on vscode because of this.

  11. stevenlaidlaw commented on Aug 9, 2019

    @stevenlaidlaw

    I've implemented a stop-gap solution using VSCode Custom CSS. Just create your own custom CSS file in your system and fill it with the following:

    .tabs-and-actions-container > .monaco-scrollable-element {
      height: auto !important;
    }
    
    .tabs-and-actions-container > .monaco-scrollable-element > .tabs-container {
      height: auto !important;
      flex-wrap: wrap;
    }

    Then just point the plugin at your custom file in your settings.json like so:

        "vscode_custom_css.imports": [
            "file:///home/username/path/to/dir/custom.css"
        ],
        "vscode_custom_css.policy": true,

    Then hit ctrl-shift-p and run "Reload custom CSS and JS"

    This has solved the problem for me until they implement an in-app solution.

  12. manustays commented on Aug 10, 2019

    @manustays
    .tabs-and-actions-container > .monaco-scrollable-element > .tabs-container {
      height: auto !important;
      flex-wrap: wrap;
    }

    Steven Laidlaw (@stevenlaidlaw), your solution worked for me, thanks! How do you figure out the classes used by vscode?


    EDIT:

    As suggested by Steven Laidlaw (@stevenlaidlaw) below, VSCode has an option in action menu (Ctrl+Shift+P) to Toggle Developer Tools.

    I ended up downloading the source code to find the classes for individual tabs and added the following CSS to make the tabs thinner (so that they take less vertical space):

    .monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container > .tab {
    	height: 25px;
    	padding-left:4px;
    	font-size:0.8em;    /* size of text and icon */
    }
    
    .monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container > .tab .label-name {
    	font-size:inherit !important;    /* apply new file-size to tab label */
    }
    
    /* below CSS for the close button on tab */
    
    .monaco-workbench .part.editor>.content .editor-group-container>.title .tabs-container>.tab>.tab-close {
    	width:20px;
    }
    
    .monaco-workbench .part.editor>.content .editor-group-container>.title .tabs-container>.tab>.tab-close .action-label {
    	height: 12px;
    	width: 12px;
    	background-size: 12px;
    }
  13. 129 remaining items

  14. s-kocher commented on Jan 9, 2021

    @s-kocher

    With many files opened and multi-line tabs enabled, the heigh can be used a lot, extreme example (but we never know, lot of legacy code exploration 😅 ) :
    image

    I remember the good old Tab Mix Plus extension on Firefox allowing to enable multi lines tab but with another option for the max displayed rows :
    image
    So when more than maximum allowed rows are needed, the rows are scrollable in vertical direction by hovering the tab area and using mouse wheel.

    In my humble opinion (and as a tab hoarder dealing often with this problem), it's the best balance to allow many tabs easy navigation and better than other solutions :

    • single line with unreadable tabs shrinked to fit all (chrome browser behavior for example)
    • single line, tabs readable (fully displayed or reasonable shrink) but "infinite" scroll to navigate between the first and the last item
    • multiple lines with all tabs displayed and readable with lot of vertical space used
  15. bpasero commented on Jan 11, 2021

    @bpasero
    Contributor

    As I said before, if you have a suggestion or found a bug with wrapping tabs, best to open a new individual issue for each.

  16. MatthewS2077 commented on Jan 18, 2021

    @MatthewS2077

    Would love to have this as well. We use VS Code mostly for Angular work and we typically have multiple components (TS, HTML, CSS) and services (TS) open at a time, and we like to group relevant tabs together at the top.

    This would be so useful! Ability to select multiple tabs and group them under single tab. And ideally option to have VSCode automatically group files with the same name but different extensions (eg test.component.ts/test.component.html/test.component.scss) under the same tab.

  17. farteryhr commented on Jan 21, 2021

    @farteryhr

    still this: #70413 (comment)
    here's my Just-Condensed™ mostly-works™ style based on previous comments in case you may like it: (sorry for mosaic cuz it's workplace code)
    image

    .monaco-workbench .part.editor>.content .editor-group-container>.title .tabs-container>.tab .monaco-icon-label:before {
      height: 24px;
      background-size: 16px;
      width: 16px;
    }
    
    .monaco-workbench .part.editor>.content .editor-group-container>.title .tabs-container>.tab>.tab-actions .action-label {
      margin-right: 4px;
    }
    
    .monaco-workbench .part.editor>.content .editor-group-container>.title .tabs-container>.tab>.tab-close .action-label {
      margin-right: 0;
    }
    
    .monaco-workbench .part.editor>.content .editor-group-container>.title.tabs>.tabs-and-actions-container>.monaco-scrollable-element {
      height: auto !important;
      min-height: fit-content;
    }
    
    .monaco-workbench .part.editor>.content .editor-group-container>.title .tabs-container{
      height: auto !important;
      min-height: fit-content;
      flex-wrap: wrap;
    }
    
    .monaco-workbench .part.editor>.content .editor-group-container>.title .tabs-container>.tab{
      height:24px;
      min-width: fit-content;
      min-width: -moz-fit-content;
      flex-shrink: 0;
      border-bottom: 1px solid rgba(128,128,128,0.5);
      padding-left: 4px;
    }
    
    .monaco-workbench .part.editor>.content .editor-group-container>.title .tabs-container>.tab .tab-label {
      line-height: 24px;
    }
    .monaco-workbench .part.editor>.content .editor-group-container>.title .tabs-container>.tab>.tab-close {
      width: 15px;
    }

    there is problem with the height of editor instance though, but not big trouble so i didn't investigate more...

  18. SantiBailors commented on Jan 21, 2021

    @SantiBailors

    I've gave up with VSCODE - this feature should've been built in, even Eclipse has it. I'm using IntelliJ now as a lot of things come out of the box.

    Are you sure Eclipse has it ? I ended up here while searching for info about how to have multiple tab rows in Eclipse, and the many mentions of this feature I found about Eclipse are all from people who say they would like Eclipse to have that feature. In my experience they are right that Eclipse doesn't have it, and I would really like to have it. How do you enable multiple tab rows in Eclipse ?

  19. sean-d commented on Jan 22, 2021

    @sean-d

    Would love to have this as well. We use VS Code mostly for Angular work and we typically have multiple components (TS, HTML, CSS) and services (TS) open at a time, and we like to group relevant tabs together at the top.

    This would be so useful! Ability to select multiple tabs and group them under single tab. And ideally option to have VSCode automatically group files with the same name but different extensions (eg test.component.ts/test.component.html/test.component.scss) under the same tab.

    Could not agree more. Top row could be project level configs/settings, second row could be middle tier files, bottom row any front end files actively being worked on. This is how I imagine my workflow would look given the ability to do such a thing :)

  20. added
    on-release-notes
    on Jan 23, 2021
  21. jreich1-godaddy commented on Feb 3, 2021

    @jreich1-godaddy

    Just tried this out in 1.53.0-insider. Works beautifully. Thank you!!!

  22. yulei900609 commented on Feb 3, 2021

    @yulei900609

    When will this feature be merged into formal release?

  23. gjsjohnmurray commented on Feb 3, 2021

    @gjsjohnmurray
    Contributor

    When will this feature be merged into formal release?

    Expect your 1.52.1 to update to 1.53 later this week.

  24. mocsy commented on Feb 8, 2021

    @mocsy

    I just got 1.53.0
    From the change log: "A new setting workbench.editor.wrapTabs lets editor tabs wrap instead of showing a scrollbar."
    Yay!

  25. fraigo commented on Feb 8, 2021

    @fraigo

    Thanks to everyone working to push this out, specially sneakyfish5 and Benjamin Pasero (@bpasero) for the hard work!
    image

  26. BjarkeCK commented on Feb 9, 2021

    @BjarkeCK

    Now, can we get some love for the fokes who wants to hide the tab bar area completely :) ? #33607

  27. locked and limited conversation to collaborators on Feb 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requesthelp wantedon-release-noteson-testplanworkbench-tabs

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions