How to specify bold font in VS Code editor?
This is a bug with Atom: https://github.com/atom/atom/issues/3790
A workaround is to strip spaces and add a hyphen between the font name and the weight.
Envy Code R Bold == EnvyCodeR-Bold
ref: https://github.com/Microsoft/vscode/issues/381#issuecomment-163356103
In your settings.json .vscode add this line:
"editor.fontWeight": "bold"
Here is what I did trying to solve the same issue on a Mac. I installed the font on my Mac the usual way:
- double-click on the
.ttf
file and click onInstall Font
The font had some variants, I wanted to use one of them on vs-code.
When you install the font on your Mac an application called Font Book
pops up (see screenshot).
- Click on the
i
icon highlighted in the screenshot, it will give you the information of thePostscript name
of the font. - copy-paste this value (the
Postscript name
value) into vs-code's settings ->Editor: Font Family
as your first item in the list.
Result: