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
Add option to turn off anti-aliasing for editor font. #2577
I've looked around, but there doesn't seem to be an easy way to do this. Is there a way for me to do this in VSCode?
Reacted by Mathieu Fenniak, Shubham Kanodia, Lea Hayes, Maik Riechert, aristid, Pavel B, Benjamin Rood, Chris Krycho, Jared Christensen, Alemar and 48 more
At this time, we don't give a straight-forward way to directly customize CSS, neither from an extension nor from a user configuration option. Short of editing the .css files we ship with (and lose the edits on updates) there's nothing I can think of. Even then, I have tried the -webkit-font-smoothing: none; and it doesn't seem to have any effect.
do the themes have a way to expose this css prop on the editorPart yet? I can set it manually on macOS and it looks much better when I set -webkit-font-smoothing: antialiased
@ptraceur To set it manually Go to Help > Toggle Developer tools and then paste -webkit-font-smoothing: antialiased in the CSS section. It's only temporary though.
Is there anything I can do to achieve a similar result for Windows? Actually, this is currently the reason why I am still using Sublime over VS Code. I am using the no_antialias font option in Sublime and are quite used to the font style. Unfortunately the solutions proposed in this issue seem only to affect MacOS.
mmarzec I would love to have that option for Windows too. However, I fear that the WebKit engine does not support that possibility at all. Please correct me if I am wrong.
I am not very familiar how VSC is created but if it is based on Chrome than to have posibility to have non antialiased fonts it will be required to introduce same option of changing "-webkit-font-smoothing" on Windows and also compile Chrome with GDI font rendering possible.
As for GDI font rendering there is web browser based on Chrome - CentBrowser where they bring back GDI font rendering, so it should be possible.
kraftwer1 I was working on editor.fontAliasing this summer and got done part of it. Too bad this change got merged so early, i lost part of the interest :) Sorry about this, i'd definitely want to finish the editor part of it.
Priit Haamer (@priithaamer) I see. I've just noticed that with the new September release, antialiasing in the built-in terminal doesn't seem to work anymore.
fontAliasing is not only useful for workspace but pretty much anywhere one can specify a font/size.
For example, the built-in terminal, I would prefer Monaco font, size=10, fontAliasing=none because Monaco is designed for that. For editor, another font/size/aliasing.
As of 1.17.0 "terminal.integrated.fontAliasing": "none" has no effect on macOS. Also "editor.fontAliasing" has no effect.
What is the way to disable antialiasing in the editor? Benjamin Pasero (@bpasero) mentions workbench.fontAliasing but it doesn't seem to be a known configuration setting nor to do anything when I add it to my user settings.
Activity
alexdima commentedon Feb 2, 2016
VSCode is built on Electron, and the rendering is basically Chromium.
-webkit-font-smoothing: none;used to control that, but it doesn't look like it's doing anything for me on windowsglobalchubby commentedon Feb 2, 2016
Thanks alexandrudima; I use that rule with the Stylish plugin. Do you where I can set that setting on VSCode?
alexdima commentedon Feb 4, 2016
At this time, we don't give a straight-forward way to directly customize CSS, neither from an extension nor from a user configuration option. Short of editing the .css files we ship with (and lose the edits on updates) there's nothing I can think of. Even then, I have tried the
-webkit-font-smoothing: none;and it doesn't seem to have any effect.Codemaverick commentedon Feb 10, 2016
I use VSCode on a mac, and I have to say I much prefer having this as an option rather than not. Is it possible to make it a feature request?
wprater commentedon Oct 17, 2016
do the themes have a way to expose this css prop on the
editorPartyet? I can set it manually on macOS and it looks much better when I set-webkit-font-smoothing: antialiasedrafmst commentedon Nov 17, 2016
How do you do that Will Prater (@wprater)?
akabiru commentedon Nov 21, 2016
@ptraceur To set it manually Go to
Help > Toggle Developer toolsand then paste-webkit-font-smoothing: antialiasedin the CSS section. It's only temporary though.rafmst commentedon Nov 21, 2016
Kabiru Mwenja (@akabiru) I see... if I close vscode, it will get as normal again right? Do you have any idea on how to make this permanent?
akabiru commentedon Nov 21, 2016
@ptraceur Yeah, it's a temporary fix. I'm not sure how to make it permanent at the moment.
chriskrycho commentedon Dec 6, 2016
On any "retina" class monitor, the difference this makes is substantial. Please consider adding it as a configuration option.
icewind commentedon Dec 14, 2016
Just add an ability to use user.css like in Atom. Then it will be possible to gradually adjust anything.
60 remaining items
schnz commentedon Aug 17, 2017
Is there anything I can do to achieve a similar result for Windows? Actually, this is currently the reason why I am still using Sublime over VS Code. I am using the
no_antialiasfont option in Sublime and are quite used to the font style. Unfortunately the solutions proposed in this issue seem only to affect MacOS.mathewhany commentedon Aug 18, 2017
@Coksnuss Same here!
thefill commentedon Aug 27, 2017
Benjamin Pasero (@bpasero) I confirm that this option works on macOS:

mmarzec commentedon Aug 31, 2017
The merge request #30628 is providing configuration but only for macOS platform.
Can we reopen the issue to add that option to Windows platform?
schnz commentedon Aug 31, 2017
mmarzec I would love to have that option for Windows too. However, I fear that the WebKit engine does not support that possibility at all. Please correct me if I am wrong.
mathewhany commentedon Aug 31, 2017
@Coksnuss I think Atom has options for font anti-aliasing, I'm not sure though.
mmarzec commentedon Sep 1, 2017
I think that "-webkit-font-smoothing" is supported on Windows on Chrome. But in case of no antialiasing there was recently a problem with DirectWrite font rendering in Windows which can't produce non antialiased fonts. The problem came since Chrome version 52 where old GDI font rendering was removed.
The problem is more detailed explained here: https://www.change.org/p/google-inc-bring-sharp-fonts-back-in-google-chrome-disable-directwrite
I am not very familiar how VSC is created but if it is based on Chrome than to have posibility to have non antialiased fonts it will be required to introduce same option of changing "-webkit-font-smoothing" on Windows and also compile Chrome with GDI font rendering possible.
As for GDI font rendering there is web browser based on Chrome - CentBrowser where they bring back GDI font rendering, so it should be possible.
kraftwer1 commentedon Sep 30, 2017
Priit Haamer (@priithaamer) Are you by any chance working on
editor.fontAntialiasing? :-)lumberman commentedon Oct 2, 2017
Very annoying to see any font so fat in this editor.
priithaamer commentedon Oct 5, 2017
kraftwer1 I was working on
editor.fontAliasingthis summer and got done part of it. Too bad this change got merged so early, i lost part of the interest :) Sorry about this, i'd definitely want to finish the editor part of it.kraftwer1 commentedon Oct 6, 2017
Priit Haamer (@priithaamer) I see. I've just noticed that with the new September release, antialiasing in the built-in terminal doesn't seem to work anymore.
KonaBlend commentedon Oct 6, 2017
fontAliasing is not only useful for workspace but pretty much anywhere one can specify a font/size.
For example, the built-in terminal, I would prefer Monaco font, size=10, fontAliasing=none because Monaco is designed for that. For editor, another font/size/aliasing.
As of 1.17.0 "terminal.integrated.fontAliasing": "none" has no effect on macOS. Also "editor.fontAliasing" has no effect.
priithaamer commentedon Oct 8, 2017
kraftwer1 KonaBlend (@KonaBlend) Thanks for reporting this. I will take a look what happened with fontalias setting in terminal.
smoothdeveloper commentedon Nov 15, 2017
What is the way to disable antialiasing in the editor? Benjamin Pasero (@bpasero) mentions
workbench.fontAliasingbut it doesn't seem to be a known configuration setting nor to do anything when I add it to my user settings.Thanks.