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
Allow for smaller or larger tab height size #42253
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:
Quick modified version of a solution. Line height still needs to be adjusted to be centered though.
VSCode Version: Latest
OS Version: Latest
Reacted by Luka Hadžiegrić, Scen.K, Mifas, Tio Irawan, Darren Prentice, Valery Tyurin, Yang Yang, Rob Silverii, Szymon Niemiec, ngortheone and 377 more
Reacted by Malachi, Matas Zanevičius, Isaac de Andrade, Wei Li, Manoj Baishya, Bruno Robert, Drewry Pope, Andrei Curelaru, Anthony Pearson, dracula and 4 more
Reacted by Darren Prentice, Tio Irawan, Omar El Halabi, Yang Yang, edd83, Stefan Armijo, vctsvz, Yuri Bochkarev, Sean Healy, Sublihim and 83 more
Reacted by kanlukasz, klerpi, Linus Behrbohm, stephen, astrolemonade, Elamaran Elango, Malachi, Matas Zanevičius, Majid Azimi, Martín Cigorraga and 10 more
Reacted by kanlukasz, klerpi, Linus Behrbohm, astrolemonade, Elamaran Elango, Malachi, Matas Zanevičius, Majid Azimi, Bruno Robert, Hameron and 7 more
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.
Reacted by torchlard, Niles Brandon, kiran ps, Hu Jianxin, Nicolas Martel, Alon Mizrahi, Gorjan Mishevski , schrodog, Xenia Tay, Martin Offermann and 42 more
Reacted by anacondaq, Enterprise Software Architecture, Rishabh, Linus Behrbohm, chitsung.lin, Martín Cigorraga, Thomas Lemberger, Suhaib Khan, Kinh Nguyen, Vinícius Ossanes Aquino and 1 more
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.
Reacted by James Merritt, SondysIT, Armin, Salomon Popp, Álvar D. Soler Rus, Trev, kh3phr3n, Ryan Haines, John Griffin, kiran ps and 21 more
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 );
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!
Reacted by Gergely Gombos, Anton Hägermalm, Quentin Cuvillier, Ievgen Pyrogov, MS, onlygio, Vael Victus, Martín Cigorraga, Ted Zhu and Saleh
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.
Reacted by Anton Hägermalm, Samuel Cole, Quentin Cuvillier, Ievgen Pyrogov, MS, Artem Laman, Wayne K. Walrath, Martín Cigorraga, ptrin, Kurt Harriman and 5 more
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.
Reacted by Chris Marx, Paramjit Singh, Nate, Benjamin Pasero, Christian Dreier, dschuessler, Alberto Romero, Cristian Stugelmayer, divnych, T-256 and 20 more
Reacted by Artem Fliunt and Developer Instack
Reacted by xiyaowong, Andrii Dieiev and Developer Instack
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.
Reacted by Chris Marx, heartacker, Limezero, Hikmet Altıntaş, Vladimir Chirikov and Lin Fangyuan
Open VSCode/resources/app/out/vs/workbench/workbench.desktop.main.js in a text editor
Search for the text normal:35,compact:22
Change the "compact" value to be something else
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.
Also works with a height of 0 (for a different look compared to "workbench.editor.showTabs": false)
Reacted by teocns, Leslie Kerman and Andreas Pareis
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?
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.
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%?
Reacted by Dieter Guendisch, dschuessler, FabioM3, Lin Fangyuan, Hikmet Altıntaş, Lucas Grigolon Varela, Adam Tassara Powell, Limezero and Madao
Reacted by Philipp Brumm, Andreas Pareis and Madao
Activity
darthdeus commentedon Mar 7, 2018
Is there any easy way to make the tabs of smaller height? Feels like a huge waste of space the way its done currently.
dpren commentedon Mar 16, 2018
In terminal-based editors, I love that tabs are usually just the height of a buffer line.
darthdeus commentedon Mar 16, 2018
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.
ngortheone commentedon Apr 20, 2018
I would love to have this feature
mikelnorth commentedon Jun 5, 2018
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.
schrodog commentedon Nov 11, 2018
I really wish this feature to be launched in near future. The height of tab size waste precious space in editor
jorgemmsilva commentedon Nov 28, 2018
+1, would really like for this customisation to be available
schrodog commentedon Jan 30, 2019
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 );alexramsey92 commentedon Feb 12, 2019
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!
ruelasv commentedon Feb 15, 2019
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.
72 remaining items
benibenj commentedon Sep 8, 2023
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/
Kein commentedon Sep 25, 2023
Is this planned for the next release?
benibenj commentedon Sep 26, 2023
Kein yes, this will be part of the September release
Limezero commentedon Sep 27, 2023
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-heightin 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.Limezero commentedon Sep 27, 2023
Really stupid workaround for those who need it:
VSCode/resources/app/out/vs/workbench/workbench.desktop.main.jsin a text editornormal:35,compact:22This 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.
Also works with a height of 0 (for a different look compared to
"workbench.editor.showTabs": false)Kein commentedon Sep 28, 2023
I can't stop laughing, we are back to where we started: editing VSCode resources. Everything is implemented in a typical MS fashion 🤣
FabioM3 commentedon Sep 28, 2023
Because of this M$ wants to obfuscate the code to stop people to mess with their holy code...
imoby commentedon Oct 5, 2023
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?
benibenj commentedon Oct 5, 2023
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.
Limezero commentedon Oct 5, 2023
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%?