VS Code Change Font: Size, Family & More
In this article
To change the font in VS Code, open the Settings editor (Ctrl+, or Cmd+, on macOS), search for “Font Family” or “Font Size,” and edit the values directly—or use the Command Palette (Ctrl+Shift+P / Cmd+Shift+P) and run “Preferences: Open Settings (JSON)” to edit the JSON file. This article covers everything from the basic text editor font to the interface, terminal, and debugging console fonts, plus how to pick a good coding font and troubleshoot common issues.
Where Font Settings Live in VS Code
VS Code stores all user settings in a JSON file called settings.json. You can open it two ways:
- Settings UI: Press
Ctrl+,(Windows/Linux) orCmd+,(macOS), then type “font” in the search bar. You’ll see all font-related settings with editable fields. - settings.json directly: Press
Ctrl+Shift+P(orCmd+Shift+P) to open the Command Palette, type “Open Settings (JSON)”, and hit Enter.
Changes you make in the UI are written to the JSON file automatically, and vice versa. The settings are stored in a user-level file that applies to all your projects, unless you create a workspace-specific .vscode/settings.json that overrides it.
How to Change the Editor Font Size
The most common change is the editor font size—the text you type and read in the main window. The default is 14 pixels on most platforms.
- Open Settings (
Ctrl+,orCmd+,). - Type
editor.fontSizein the search bar. - Enter a number (e.g., 16). The preview updates immediately.
- If you prefer JSON, add
"editor.fontSize": 16tosettings.json.
You can also change the font size temporarily with Ctrl+Plus / Ctrl+Minus (or Cmd+Plus / Cmd+Minus on macOS). This zoom only affects the current window and resets when you restart. To make it permanent, use the setting above.
How to Change the Font Family
The font family setting controls which typeface is used. The default on Windows is Consolas, on macOS it’s Menlo, and on Linux it’s DejaVu Sans Mono. To change it:
- Open Settings and search for
editor.fontFamily. - Enter a comma-separated list of font names, e.g.,
Fira Code, Consolas, monospace. - The first font that is installed on your system will be used. If none are found, VS Code falls back to a default monospace font.
You can also enable font ligatures (like -> becoming a single arrow) by setting "editor.fontLigatures": true. This works with fonts that support ligatures, such as Fira Code, JetBrains Mono, and Cascadia Code.
Changing Fonts for Other Areas (Terminal, Interface, Debug Console)
VS Code lets you set separate fonts for different parts of the interface:
- Terminal:
terminal.integrated.fontFamilyandterminal.integrated.fontSize. - Interface (UI):
window.zoomLevelchanges the overall UI scale, but there is no direct setting for the UI font family. You can change the font size of the entire interface withwindow.zoomLevel(e.g.,1makes everything 20% larger). - Debug console: Uses the editor font by default. There is no separate setting for the debug console font.
- Editor suggestions/widget: Uses the editor font as well.
To change the terminal font, search for “terminal font” in Settings. The terminal font size defaults to the editor size, but you can override it independently.
How to Choose a Good Coding Font
Not all fonts are equally readable for code. Look for a monospaced font (all characters have the same width) with clear distinctions between 0/O, 1/l/I, and 2/Z. Popular free options include:
- Fira Code – has ligatures, very popular.
- JetBrains Mono – designed by JetBrains, clean and readable.
- Cascadia Code – Microsoft’s font, includes ligatures.
- Source Code Pro – Adobe’s font, solid and neutral.
- Consolas – default on Windows, excellent.
- Menlo – default on macOS, based on Bitstream Vera.
To install a new font, download the file (usually .ttf or .otf), double-click it, and click “Install” (Windows/macOS) or place it in ~/.local/share/fonts (Linux). After installation, restart VS Code so it picks up the new font.
Common Problems and Fixes
Here are typical issues users run into and how to solve them:
- Font doesn’t change: Make sure the font name is spelled exactly as it appears in the font file (e.g., “Fira Code” not “FiraCode”). Also check that you don’t have a workspace setting overriding the user setting.
- Ligatures don’t work: The font must support ligatures, and you must set
"editor.fontLigatures": true. Some fonts (like Consolas) don’t have ligatures. - Font is blurry: On Windows, try disabling “ClearType” or adjusting the DPI scaling. In VS Code, you can also try
"editor.fontWeight": "normal"if the font looks too thick. - Size resets after restart: The zoom (
Ctrl+Plus) is temporary. Use theeditor.fontSizesetting for a permanent change. - Terminal font won’t change: The terminal has its own settings. Check that you’re editing
terminal.integrated.fontFamily, noteditor.fontFamily.
Frequently Asked Questions
How do I reset the font to default?
Open Settings and delete the editor.fontFamily and editor.fontSize entries (or set them to empty/0). VS Code will revert to the platform default.
Can I use a proportional font (like Arial) for code?
Yes, you can, but it’s not recommended. Monospaced fonts align columns and make indentation clearer. If you must, set "editor.fontFamily": "Arial".
Why does my font look different in the terminal vs the editor?
Because they are separate settings. The terminal uses terminal.integrated.fontFamily, which defaults to the editor font, but you can override it.
Does changing the font affect the whole UI?
No. The editor font only affects the code area. To change the overall UI size, use window.zoomLevel.
How do I install a font I downloaded?
Double-click the font file and click “Install” (Windows/macOS). On Linux, copy it to ~/.local/share/fonts and run fc-cache -f. Then restart VS Code.