Which font is used in Visual Studio Code Editor and how to change fonts?
In the default settings, VS Code uses the following fonts (14 pt) in descending order:
- Monaco
- Menlo
- Consolas
- "Droid Sans Mono"
- "Inconsolata"
- "Courier New"
- monospace (fallback)
How to verify: VS Code runs in a browser. In the first version, you could hit F12 to open the Developer Tools. Inspecting the DOM, you can find a containing several s that make up that line of code. Inspecting one of those spans, you can see that font-family is just the list above.
Go to Preferences
> User Settings
. (Alternatively, Ctrl + , / Cmd + , on macOS)
Then you can type inside the JSON object any settings you want to override. User settings are per user. You can also configure workspace settings, which are for the project that you are currently working on.
Here's an example:
// Controls the font family.
"editor.fontFamily": "Consolas",
// Controls the font size.
"editor.fontSize": 13
Useful links:
- Default Settings