Skip to content

Allow for smaller or larger tab height size #42253

Closed

Description

Height of tabs and tab container currently is fixed. It would be nice to allow for the option to have a smaller height size of tab container by possibly having an option to set it in settings. Maybe even offer option for larger as well. One might also be able to have the option of disabling file icons to provide even more of a xsmall option. All this provides more real estate to editor instead.

Current:
before

Quick modified version of a solution. Line height still needs to be adjusted to be centered though.
after

  • VSCode Version: Latest
  • OS Version: Latest

Activity

  1. added
    workbench-tabs
    feature-request
    on Jan 28, 2018
  2. darthdeus commented on Mar 7, 2018

    @darthdeus

    Is there any easy way to make the tabs of smaller height? Feels like a huge waste of space the way its done currently.

  3. dpren commented on Mar 16, 2018

    @dpren

    In terminal-based editors, I love that tabs are usually just the height of a buffer line.

  4. darthdeus commented on Mar 16, 2018

    @darthdeus

    Exactly, there's no reason for them to be any higher than a single line. Sometimes it feels that designers who create "pretty" designs like tabs in VS Code never really understood the needs of programmers. I mean sure, it looks pretty at first sight, but then you realize you lose 3 centimeters of your possibly small laptop screen just to a useless menu and tabs.

    Comparing this to VIM for example, I don't think I ever used tabs, in the sense that I do keep multiple buffers open (and splits possibly), but don't need to see their names at all times. Kinda unfortunate that the current norm is having 40 tabs open instead of having fast and easy buffer switching.

  5. ngortheone commented on Apr 20, 2018

    @ngortheone

    I would love to have this feature

  6. mikelnorth commented on Jun 5, 2018

    @mikelnorth

    I have been searching and searching for this, sad that I cant edit the height/font size of the editor tabs. Only able to change "workbench.editor.tabSizing": "shrink", which makes it take less width.

    Id love to be able to specify what font size or to specify at least a small normal and large. or something similar.

  7. schrodog commented on Nov 11, 2018

    @schrodog

    I really wish this feature to be launched in near future. The height of tab size waste precious space in editor

  8. jorgemmsilva commented on Nov 28, 2018

    @jorgemmsilva

    +1, would really like for this customisation to be available

  9. schrodog commented on Jan 30, 2019

    @schrodog

    For those wishing to use smaller tabs immediately can use custom CSS extension, but be careful when you make height of tab smaller, there will be empty space in the bottom, because the height of editor is calculated directly under assumption of tab height = 35px and make it inline CSS. :( You can work around by setting editor-container to be height: calc(100% - height_you_want );

  10. alexramsey92 commented on Feb 12, 2019

    @alexramsey92

    For issues where I span the entire stack of a web application, I can have at least 10-15 files open at any given time. Config, dao, html, front end js, back end js, models, etc. This level of customization would make it great for me to be able to easily manage a larger number of open files. Having a two layer tab with adjustable height would be awesome!

  11. ruelasv commented on Feb 15, 2019

    @ruelasv

    Tab titles seem unnecessarily tall (top and bottom padding). This is a BIG issue when working on laptops with no extra monitor as every pixel on the screen is precious real estate. Would LOVE to get some setting that adjusts this padding and make the tab smaller but still functional. As of now it feels like I am getting old and need to have HUGE titles lol.

  12. 72 remaining items

  13. benibenj commented on Sep 8, 2023

    @benibenj
    Contributor

    In the newest insider we now support a setting to reduce the editor tab height. The compact option reduces the height to the same height as breadcrumbs. The setting also applies to the editor title when tabs are not shown.
    We are not planning on adding a larger mode as we don't believe users will need this. However, let us know if this would be the case for you.

    You can try to reproduce with our nightly insider builds. You can give our preview releases a try from: https://code.visualstudio.com/insiders/

    tabHeightDemo

  14. Kein commented on Sep 25, 2023

    @Kein

    Is this planned for the next release?

  15. benibenj commented on Sep 26, 2023

    @benibenj
    Contributor

    Kein yes, this will be part of the September release

  16. Limezero commented on Sep 27, 2023

    @Limezero

    The current implementation of this doesn't seem to let you configure how high you want your tabs to be, only switch between a preset height of 35 (way too tall) and 22 (way too short for my liking). Is there any way we can define a height manually?

    I saw --editor-group-title-height in the commit, but I have no idea how this variable is defined or if it's accessible as a command line flag, or a JSON entry, or what.

  17. Limezero commented on Sep 27, 2023

    @Limezero

    Really stupid workaround for those who need it:

    1. Open VSCode/resources/app/out/vs/workbench/workbench.desktop.main.js in a text editor
    2. Search for the text normal:35,compact:22
    3. Change the "compact" value to be something else
    4. Enable compact mode in the settings

    This should survive future code changes and be a fairly reliable way of setting a custom value, at the cost of "corrupting" your installation and getting warned about that.

    2023 09 28-01 03 37_Code_-_Insiders

    Also works with a height of 0 (for a different look compared to "workbench.editor.showTabs": false)

    2023 09 28-01 17 49_Code_-_Insiders

  18. Kein commented on Sep 28, 2023

    @Kein

    The current implementation of this doesn't seem to let you configure how high you want your tabs to be

    1. Open VSCode/resources/app/out/vs/workbench/workbench.desktop.main.js

    I can't stop laughing, we are back to where we started: editing VSCode resources. Everything is implemented in a typical MS fashion 🤣

  19. FabioM3 commented on Sep 28, 2023

    @FabioM3

    Because of this M$ wants to obfuscate the code to stop people to mess with their holy code...

  20. imoby commented on Oct 5, 2023

    @imoby
    Author

    Benjamin Christopher Simmonds (@benibenj) I want to thank you for allowing the option for compact tabs but I still feel there is need for larger tabs for those who wish to have that. should that be a separate issue then?

  21. benibenj commented on Oct 5, 2023

    @benibenj
    Contributor

    Muhamed Brifkani (@imoby) I suggest you make a new issue specifically for this. We can then better see how many users would need this and why. Looking threw the timeline of the current issue, I mostly see people interested in smaller tab heights.

  22. Limezero commented on Oct 5, 2023

    @Limezero

    Is there a good reason not to expose the height variable to users and let them set it to whatever they want? I can't see this leading to anything except years of further complaining - "yes I wanted taller tabs but not THAT tall", "no actually I wanted even shorter tabs, this doesn't work for me".

    It's a bit like people requesting the ability to use smaller or larger fonts, and then years later adding the ability to use exactly 10pt high text under a "compact" option.

    Also, with respect to the number of people needing this, why exactly does that matter? What percentage of VSCode users use a screen reader or the high contrast theme, 0.001%?

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

Metadata

Metadata

Labels

feature-requeston-testplanworkbench-tabs

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions