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 to change the font size and font of the workbench #519
At the moment, we can only change the font size / font of the editor. If we want to change the font size, we need to use a roundabout method of "zooming in / out". It would be nice if this could be adjusted through the preferences.
Further to this, it seems weird that if I want larger fonts outside of the editor I have to zoom in each time I restart.
Reacted by narayan iyer, pteromyscus, Hao "Johnny" Jiang, dcrabbeYapily, John Fred Fadrigalan, Mahmudur Rahman, Peter Lyons Kehl, Azis Ramadhan, Guy Carmeli, Shang Chi Wu and 36 more
v1.4.0 seemed to make the file explorer fonts larger/bolder, making it harder to traverse a large directory
Reacted by François Best, John Sing Dao Siu, Yaojian, Alexander Staubo, diessica, Joseph Tingsanchali, Matt Porter, Michael Bensoussan, Alex Simenduev, Tomislav Capan and 40 more
Reacted by ronen1malka, xster, Rajah Chandrasekhar, Saket Kulkarni, Bartosz Brzeziński, Cristea Cristian, katon, braj065, Rahul K Jha, John Gill and 31 more
Reacted by Greg, B, Duc Pham, anton, Seth Livingston, Alexander, Amparose, Kai Tamkun, Miss Manners, Anderson Slivinski and 25 more
Reacted by Alexey Murz Korepov, Felipe Spengler, Victoria Rodriguez, NexusSfan, Jason, jonathanvupham, Rob, Felipe Morschel, Dvd-Znf, Yttrium and 2 more
Well, there's some obscure AI feature that needs more tweaking. How can you expect them to think about accessibility?!
:^) I value the effort to go further along with the trend, but this is the issue #519, it has been here since the beginning, I think it's time to ditch the vscode.
Oh wow, I can't believe it's not a thing. The new tabs were changed in a way that trips my myopia, so I wanted to change workbench.editor.tabFontSize or workbench.editor.tabFontFamily or workbench.editor.tabFontWeight, but... that's not a thing? How? Why?
Reacted by Victoria Rodriguez, Dmytro Tiapukhin, Batu and Dvd-Znf
After 10 years, still no native setting. For anyone who needs this now and doesn't want to rely on extensions, I've been using a local shell script that directly injects CSS into the installed workbench.desktop.main.js file.
It:
Modifies the global workbench font family and size
Also adjusts explorer, menu bar, and status bar separately
Does not require cloning VS Code or building from source
The script runs in seconds, works on macOS/Linux/Windows (Alpine Linux included), and I re‑run it after every VS Code update.
I'm sharing it as a temporary workaround, but I still strongly believe this should be a native preference. Please, Microsoft – add a proper workbench.fontFamily and workbench.fontSize setting. This is a fundamental accessibility and customization feature.
For reference, the patch script (silent, auto‑detects the JS file) is:
Just updated 1.131.0. Still no workbench font configuration. However you can enable new VS Code pet. They literally rather work on some pet than on this basic accessibility feature.
I'm sure most developers want pet in editor than to be able to read text normally.
Reacted by Alexey Murz Korepov, harry, Felipe Spengler, roshal, David Marruecos, Alexander Tobias, T-RegEx, Peter Lyons Kehl and Anirudh Gupta
Reacted by Alexey Murz Korepov, Dmitry, Felipe Spengler, Nikhil Anand, Mirza Miftahul Fadillah, Sunny Young, Alexander Tobias, kate, T-RegEx and Anirudh Gupta
A concrete accessibility/readability use case is the sidebar UI of AI coding-agent extensions. These extensions often present long chat and review content in a WebviewView (for example, coding assistants such as Codex, Kilo Code, and Claude Code).
window.zoomLevel is currently the only reliable workaround, but it scales the entire workbench: the editor chrome, Explorer, terminal, menus, and all other UI. I would like to increase the reading size of sidebar/panel content while keeping the rest of the workbench at its current scale.
Please consider a workbench/sidebar font-size setting, or a documented VS Code CSS variable/API that webview views can opt into, so extension authors can reliably honor the user's preferred reading size. It should be independent of editor.fontSize and global window zoom.
Please do something about this, if you don't have eyes healthy, this is real problem. I don't want to waste space on window decoration chrome and so on. Just to set custom font size for explorer and chat (with input window).
Reacted by AA, T-RegEx, roshal, Peter Lyons Kehl, Meadowsys, Alexey Poimtsev, ShikiSuen and Lanz Clinton Valdez
I opened #340334 for the side bar content portion of this request. It adds workbench.sideBar.fontFamily and workbench.sideBar.fontSize for both primary and secondary side bars, with live updates and reset support. The PR includes browser tests; broader workbench font customization remains outside its scope.
Could a maintainer link it in the Development section as a related contribution?
Reacted by Meadowsys, seru-codes, Lanz Clinton Valdez and Yong
Note that CSS alone can change the text size, but it does not reliably change the Explorer's actual virtualized row height. For that, I also had to modify the Explorer's ITEM_HEIGHT value in VS Code's bundled JavaScript.
Activity
skube commentedon Dec 3, 2015
Further to this, it seems weird that if I want larger fonts outside of the editor I have to zoom in each time I restart.
egamma commentedon Dec 3, 2015
pls see #291 for the zooming issue (in general pls do not create combo issues 😄 )
[-]Change font size of outside editor[/-][+]Allow to change the font size of the workbench[/+]conceptualspace commentedon Aug 5, 2016
+1
v1.4.0 seemed to make the file explorer fonts larger/bolder, making it harder to traverse a large directory
[-]Allow to change the font size of the workbench[/-][+]Allow to change the font size and font of the workbench[/+]bobrocke commentedon Mar 6, 2017
+1
nishantgeorge commentedon Apr 14, 2017
+1
597 remaining items
fleps commentedon Jun 26, 2026
Over 10 years. Unbelievable.
MurzNN commentedon Jun 26, 2026
Claude (@claude) fix this pls!
toridoriv commentedon Jun 26, 2026
Well, there's some obscure AI feature that needs more tweaking. How can you expect them to think about accessibility?!
anotherglitchinthematrix commentedon Jul 2, 2026
:^) I value the effort to go further along with the trend, but this is the issue #519, it has been here since the beginning, I think it's time to ditch the vscode.
Q1CHENL commentedon Jul 5, 2026
i guess vscode is not relevant in AI era anymore anyways so...
NatoBoram commentedon Jul 12, 2026
Oh wow, I can't believe it's not a thing. The new tabs were changed in a way that trips my myopia, so I wanted to change
workbench.editor.tabFontSizeorworkbench.editor.tabFontFamilyorworkbench.editor.tabFontWeight, but... that's not a thing? How? Why?devops2626 commentedon Jul 13, 2026
After 10 years, still no native setting. For anyone who needs this now and doesn't want to rely on extensions, I've been using a local shell script that directly injects CSS into the installed
workbench.desktop.main.jsfile.It:
The script runs in seconds, works on macOS/Linux/Windows (Alpine Linux included), and I re‑run it after every VS Code update.
I'm sharing it as a temporary workaround, but I still strongly believe this should be a native preference. Please, Microsoft – add a proper
workbench.fontFamilyandworkbench.fontSizesetting. This is a fundamental accessibility and customization feature.For reference, the patch script (silent, auto‑detects the JS file) is:
tomkr4l commentedon Jul 29, 2026
Just updated 1.131.0. Still no workbench font configuration. However you can enable new VS Code pet. They literally rather work on some pet than on this basic accessibility feature.
I'm sure most developers want pet in editor than to be able to read text normally.
Sourgin commentedon Aug 1, 2026
#319151
We have hope boys, 12 years later.
iron-water commentedon Sep 3, 2026
A concrete accessibility/readability use case is the sidebar UI of AI coding-agent extensions. These extensions often present long chat and review content in a
WebviewView(for example, coding assistants such as Codex, Kilo Code, and Claude Code).window.zoomLevelis currently the only reliable workaround, but it scales the entire workbench: the editor chrome, Explorer, terminal, menus, and all other UI. I would like to increase the reading size of sidebar/panel content while keeping the rest of the workbench at its current scale.Please consider a workbench/sidebar font-size setting, or a documented VS Code CSS variable/API that webview views can opt into, so extension authors can reliably honor the user's preferred reading size. It should be independent of
editor.fontSizeand global window zoom.jan-valek commentedon Sep 3, 2026
Please do something about this, if you don't have eyes healthy, this is real problem. I don't want to waste space on window decoration chrome and so on. Just to set custom font size for explorer and chat (with input window).
Fs2qFtoS commentedon Oct 7, 2026
I opened #340334 for the side bar content portion of this request. It adds
workbench.sideBar.fontFamilyandworkbench.sideBar.fontSizefor both primary and secondary side bars, with live updates and reset support. The PR includes browser tests; broader workbench font customization remains outside its scope.Could a maintainer link it in the Development section as a related contribution?
jackie-weiwei commentedon Oct 10, 2026
This worked for me on VS Code 1.141.0, commit:
The result is:
20px36px22pxNote that CSS alone can change the text size, but it does not reliably change the Explorer's actual virtualized row height. For that, I also had to modify the Explorer's
ITEM_HEIGHTvalue in VS Code's bundled JavaScript.1. Install Custom CSS and JS Loader
Install the VS Code extension:
Publisher:
2. Create the CSS file
Create:
with:
Make sure the file is really named:
and not:
3. Add the CSS file to VS Code settings
Open:
and add:
If
vscode_custom_css.importsalready exists, add the path to the existing array instead of creating another property.Do not enable the extension yet.
4. Find
workbench.desktop.main.jsLocate your VS Code installation directory.
Typical locations are:
or:
Then locate:
Some installations may contain an additional version/commit directory before
resources.Back up this file before modifying it.
5. Change the Explorer's real row height
Completely exit VS Code.
Open
workbench.desktop.main.jsin another editor that can handle large files.For VS Code 1.141.0, search for this exact minified fragment:
Replace it with:
The only actual change is:
to:
Do not globally replace every
22or everyITEM_HEIGHT.If this exact fragment cannot be found, stop and inspect the current VS Code version first. The minified code may be different in another build.
If VS Code is installed under
Program Files, administrator privileges may be required to save the file.6. Enable the custom CSS
Start VS Code and run:
Then restart VS Code when prompted.
If necessary, completely close all VS Code windows and start it again.
The Explorer should now use approximately:
Changing the values later
For the font size, change the
font-sizevalues inexplorer.css.For the icon size, change:
For the row height, keep the CSS height and the JavaScript
ITEM_HEIGHTsynchronized.For example, if changing the row height to
40px, change both:and the relevant CSS
36pxvalues to40px.After changing only the CSS, run:
and restart VS Code.
Important notes
VS Code updates may overwrite
workbench.desktop.main.js, so this modification may need to be reapplied after an update.Do not copy an old modified
workbench.desktop.main.jsover a newer VS Code version.Modifying VS Code installation files or loading custom CSS may also trigger an installation integrity warning.
workbench: address font scaling review feedback (#519)
workbench: add list density and tree font family settings (#519)