Search code examples
windowsfontseditorvisual-studio-code

How to specify bold font in VS Code editor?


How to specify a bold font in VS Code's settings.json? For example, I have Envy Code R and Envy Code R Bold (exact names shown in windows' font viewer) installed on my windows machine, and while

"editor.fontFamily": "Envy Code R"

setting works fine,

"editor.fontFamily": "Envy Code R Bold"

doesn't work (a fallback font is used instead).

Is that possible to do at all? There are no any other font settings like fontWeight or fontStyle. I also tried specifying other fonts with bold variants to no avail. VS Code 0.10.11 here.


Solution

  • In your settings.json .vscode add this line:

    "editor.fontWeight": "bold"