4
votes

The default fonts of VS Code editor are: Monaco Menlo Consolas "Droid Sans Mono" "Inconsolata" "Courier New" monospace.

But I want to add source code pro font. I tried

{"editor.fontFamily": "SourceCodePro-Regular"}

I have that font in my "fonts" "(Windows).

2

2 Answers

13
votes

Install all Fonts from this ZIP. Try this in user settings JSON file

{
    "editor.fontFamily": "Source Code Pro"
}

Save it then Restart VS Code.

3
votes

There should be an ending double quote after the font name:

{
    "editor.fontFamily": "SourceCodePro-Regular"
}

Edit: try changing the value to "Source Code Pro". This works on my PC.