VS Code

How to Change the Font in VS Code (Editor, Terminal, and UI)

How to Change the Font in VS Code (Editor, Terminal, and UI)

Most of how to change font in VSCode comes down to one setting: editor.fontFamily. Give it the exact name of a font installed on your operating system, either in the Settings editor or in settings.json.

The typeface is only part of it. Size and line height live in their own settings, and they affect reading comfort just as much. The integrated terminal ignores the editor font completely and reads its own.

Defaults change by platform too. Microsoft’s VS Code source (2026) sets Consolas at 14 px on Windows, Menlo at 12 px on macOS and Droid Sans Mono at 14 px on Linux, so the same install won’t look the same on two machines.

How to Change the Editor Font Family in VS Code

YouTube player

Put the name of an installed font into editor.fontFamily and save. The editor picks it up right away.

  1. Install the font on your operating system (the next section covers this).
  2. Press Ctrl+, on Windows and Linux or Cmd+, on macOS to open the Settings editor.
  3. Search for “font family” and find Editor: Font Family.
  4. Type the exact font name first, then fallbacks, for example ‘Cascadia Code’, Consolas, monospace.
  5. Close the settings tab. The editor redraws on its own.

Changing the Font Through the Settings Editor

Use the search box. The font options are spread over several groups, and scrolling around for them wastes time.

You can reach the Settings editor from File > Preferences > Settings, with Ctrl+, (Cmd+, on a Mac), or by running Preferences: Open Settings from the Command Palette. I just use the shortcut.

Before you type a value, the field shows your platform’s default stack. Microsoft’s VS Code source (fontInfo.ts, main branch, checked November 2026) defines a different one for each system.

Operating systemDefault editor.fontFamily
macOSMenlo, Monaco, ‘Courier New’, monospace
WindowsConsolas, ‘Courier New’, monospace
Linux‘Droid Sans Mono’, monospace

Changing the Font in settings.json

Run Preferences: Open User Settings (JSON) from the Command Palette. There’s also a workspace version of that command, which writes to the .vscode folder at the project root instead of your user file.

{
"editor.fontFamily": "'JetBrains Mono', Consolas, monospace"
}

Put quotes around any name with a space in it. And watch your spelling. If the first font isn’t found, VS Code quietly moves on to the next one in the list, with no error and no warning, so a typo looks exactly like a setting that didn’t work.

The file sits in a different place on each OS. If you need help finding it, there’s a separate walkthrough on opening settings.json in VS Code.

Small tip: set workbench.settings.editor to json and Ctrl+, will open settings.json directly instead of the UI.

How to Install a Font So VS Code Can Use It

YouTube player

VS Code can only draw fonts your operating system already knows about. So the order is fixed: install the font, then point the setting at its family name. It has to be available on the computer running VS Code.

Download the files from the font’s official page or its GitHub repository.

On Windows, extract the zip, right-click each .ttf or .otf file and choose Install. Dragging the files into C:\Windows\Fonts works too (Microsoft Support).

On macOS, double-click the file in Finder and click Install, or open Font Book and use File > Add Fonts to Current User (Apple Support).

Linux takes one extra step. Copy the files into a fonts folder, then run fc-cache so the system rebuilds its font list.

In the setting, use the family name, not the file name. This trips people up with Cascadia, which ships as several families. Cascadia Code has ligatures, Cascadia Mono doesn’t, and the PL and NF builds add Powerline and Nerd Font symbols.

Old font still showing? Restart VS Code. The Monaspace README warns that the operating system’s font cache can require restarting applications, or the whole computer, before new fonts appear.

Which Font Works Best for Comfortable Coding?

It depends on your screen more than anything (and honestly on your eyes). A few things are worth checking when you compare candidates.

Start with look-alike characters. 1, l and I should be easy to tell apart, and the zero should have a dot or a slash through it. JetBrains Mono dots its zero for exactly this reason.

X-height matters more than people expect. A taller lowercase reads larger at the same size. JetBrains says Consolas has slightly wider but smaller letters, so users raise the size and end up with longer lines. That’s a vendor talking about a competitor, so test it on your own monitor before you take it as fact.

Ligatures are optional and mostly a matter of taste. As for licensing, every font in the table below is free to use.

FontLigaturesLicenseStandout trait
ConsolasNoShips with WindowsWindows default
Cascadia CodeYes (Mono variant has none)Free, open sourcePL and NF variants with extra symbols
JetBrains MonoYesSIL OFL 1.1Eight weights, taller x-height
Fira CodeYesSIL OFL 1.1Several external terminals skip its ligatures
Monaspace NeonThrough stylistic sets (ss01 to ss09)SIL OFL 1.1Five families with shared metrics

Sources for the table: JetBrains (license, eight weights), the Fira Code repository (license, terminal limits) and GitHub Next’s Monaspace README (license, five families, ligature sets).

Monaspace has a catch in VS Code. Its own README says variable fonts are not yet well supported there and that mixing multiple fonts is not possible. Which is a shame, since mixing the families is a big part of what Monaspace advertises.

Paid fonts like MonoLisa and Operator Mono show up in plenty of public settings files. They’re nice. They’re also not necessary, because the free options above cover every comfort feature in the table.

If your default font already reads cleanly on your screen, keep it. Switching just to get ligatures changes how the code looks, not how comfortable it is to read.

How to Adjust Font Size, Weight and Line Height

Change editor.fontSize first. If lines feel cramped after that, set editor.lineHeight. editor.fontWeight and editor.letterSpacing can wait, and plenty of people never touch them.

These are the defaults you start from, according to Microsoft’s VS Code source (fontInfo.ts, main branch, checked November 2026):

  • font size is 12 on macOS and 14 on Windows and Linux
  • line height is 0, which means automatic, using a ratio of 1.5 on macOS and 1.35 elsewhere
  • font weight is normal
  • letter spacing is 0

Some tutorials quote a flat 14 pixels for every system. The source file says that’s only true on Windows and Linux.

Font Size

The value is in pixels. Search “font size” in the Settings editor, or add it to settings.json:

{
"editor.fontSize": 16
}

Go up one or two pixels at a time and work with each change for a while before you decide. Window zoom (window.zoomLevel) is a different setting that scales the entire window. More on that further down.

Weight and Line Height

Line height defaults to 0, which tells VS Code to work it out from the font size. Enter a fixed number and you override that. It helps when letters with tall ascenders start to feel crowded against the line above.

Weight is pickier. A lighter or heavier value only does something if the font actually ships that weight. JetBrains Mono, for instance, comes in eight weights from Thin to ExtraBold, so it responds. A lot of fonts won’t.

Letter spacing sits at zero by default and rarely needs a change.

Variable Font Axes

Variable fonts store weight and other styles on axes, and editor.fontVariations is how you reach them.

It takes true, false or a string, and it’s false by default. One developer’s Monaspace setup uses a string such as ‘wght’ 350, because the built-in weight instances didn’t behave with editor.fontWeight.

This is the fragile corner of font settings. The Monaspace README says variable fonts are not yet well supported in VS Code, so look at the result before you rely on it.

How to Turn On Font Ligatures

YouTube player

With ligatures on, a sequence like -> or <= gets drawn as one connected glyph. The file itself still holds the original characters. Fira Code describes this as a font rendering feature, so the underlying code stays ASCII-compatible.

The setting is editor.fontLigatures, and it’s off (false) by default. Setting it to true turns on the font’s standard ligatures. You can also hand it a string that picks OpenType features by name, such as ‘calt’ or ‘ss01’.

{
"editor.fontFamily": "'Cascadia Code', Consolas, monospace",
"editor.fontLigatures": "'calt', 'ss01'"
}

The Monaspace README lists calt (texture healing), liga, ss01 to ss09 (the ligature sets) and cvNN (character variants) as the feature names, and says string values have to be typed into settings.json by hand. In Cascadia Code, ss01 switches on the cursive italic.

Don’t copy someone else’s list blindly. Stylistic set numbers mean different things in different fonts, so check the font’s own documentation first.

The terminal has its own switch, terminal.integrated.fontLigatures.enabled, and the terminal font must support ligatures for it to do anything. That is current as of the VS Code terminal documentation dated 10/28/2026.

Older tutorials won’t mention it. A December 2018 tutorial from @IT lists no terminal ligature setting at all. @IT later reported that VS Code 1.96 added terminal ligatures, working with or without GPU acceleration.

One real downside. A != can render as a single not-equal sign, which looks tidy but hides what was actually typed. If you review code over screen share or teach beginners, I’d leave ligatures off.

How to Change the Font in the Terminal and Other Panels

YouTube player

The integrated terminal ignores editor.fontFamily. So do the debug console and the Markdown preview, which means each one needs its own entry.

Terminal Font

terminal.integrated.fontFamily takes CSS font-family syntax. ‘Fira Code’, monospace uses Fira Code first and falls back to monospace for missing glyphs. Size goes in terminal.integrated.fontSize.

Weight is split across two settings, fontWeight for normal text and fontWeightBold for bold text. For spacing, terminal.integrated.lineHeight is a multiplier where 1.1 adds 10%, while letterSpacing is measured in pixels.

Prompt themes that draw icons need a patched font. Nerd Fonts usually end in ” NF” (the documentation’s example is ‘Hack NF’ in terminal.integrated.fontFamily). VS Code draws some Powerline symbols on its own, without any configured font.

Custom glyph rendering for box drawing and Powerline symbols requires GPU acceleration. In the default auto mode, the terminal falls back to the slower DOM renderer when WebGL fails, so if your prompt shapes look broken, that setting is the first place to check.

Markdown Preview and Debug Console

The debug console does not apply the Text Editor font settings. It has its own family, size and line height settings, found under Features, Debug, Console.

For the Markdown preview, search “font family” in the Settings editor. The preview’s entry shows up next to the editor and terminal ones.

If you like to preview Markdown in VS Code beside the source, you can give the preview a proportional font and keep the editor monospaced.

Zooming the Interface

Zoom In is Ctrl+= (Cmd+= on macOS), Zoom Out is Ctrl+-, and Reset Zoom is Ctrl+Numpad0. Each Zoom command changes the zoom level by 20 percent, according to the VS Code accessibility documentation. The result is saved in window.zoomLevel, which defaults to 0.

There’s a separate guide to zooming in VS Code if you want the keyboard side in more detail.

Window zoom scales the whole interface, sidebar and panels included. Mouse wheel zoom is narrower. Once the Mouse Wheel Zoom setting is on, holding Ctrl and scrolling changes only the editor font.

Where Font Changes Apply: User, Workspace and Profile Settings

A font set in user settings follows you into every project you open. A workspace entry overrides it for that one project.

ScopeStored inApplies to
Usersettings.json in the user folderEvery window on the active profile
Workspace.vscode/settings.json in the projectThat project only
ProfileThe profile’s own settings.jsonWhichever profile is active

Later scopes win in this order: default, user, remote, workspace, workspace folder, then language-specific versions of each, with policy settings set by an administrator overriding everything. Primitive values are replaced rather than merged, so a workspace font family fully replaces your user one.

For the wider picture of how VS Code settings fit together, that guide covers the other categories.

My rule is simple. Everyday choices like family, size and ligatures go in user settings. Workspace settings are for exceptions, such as a larger size in a project you present from.

Be careful with that second one, though. The workspace file sits in the project, so version control can share it, which means a personal font choice committed there lands on every teammate who pulls.

User settings are also scoped to the active profile. A font set in the Default Profile will not follow you into another one unless you use Apply Setting to all Profiles in the Settings editor.

Settings Sync moves the setting, not the font file. You turn it on from Backup and Sync Settings… in the Manage menu and sign in with a Microsoft or GitHub account. Installing the font on each machine is still your job.

If your screens differ, exclude a setting such as editor.fontSize through settingsSync.ignoredSettings so each machine keeps its own value.

Why the Font Is Not Changing in VS Code, and When the Fix Fails

Usually it’s a misspelled name. When it isn’t, look at scope next, and then at the settings file itself.

SymptomLikely causeFix
Default font keeps showingFamily name misspelled, or font missing from the systemCopy the exact family name from your system font list, then run Developer: Reload Window
One project ignores your fontWorkspace entry overrides user settingsOpen the Workspace tab in the Settings editor and remove the entry
Nothing applies after a manual editSyntax error in settings.jsonLook for red squiggles, usually a missing comma or an unclosed quote

Table sources: the VS Code settings documentation says settings.json has IntelliSense and error highlighting, which is how a syntax error shows up.

When the Fix Fails

Open any other application and check its font list. If the font isn’t there either, the install failed and your setting is fine.

Some builds register their styles as separate families. That’s why public settings files list ‘Fira Code Retina’ next to ‘Fira Code’, and why trying the variant name is worth a shot.

Still stuck? Isolate it with a clean profile. The Profiles editor can create a new profile from an Empty Profile source. Set only the font there. If it works, something in your main profile or workspace is overriding it. If it fails too, the cause is the font or the operating system.

Common Questions About Font Settings in VS Code

How do I reset the font settings to default?

Hover over the setting in the Settings editor, click the gear icon and choose Reset Setting. If you work in settings.json, deleting that entry does the same thing.

Can I change the font of the sidebar, menus and Explorer?

Not with any built-in setting. The request sits in the VS Code repository as a feature request (issue 519).

Some people edit VS Code’s CSS files to get around it. That’s unsupported. Window zoom is the supported way to make that text bigger.

Can I use a different font for each programming language?

Possibly. Blocks such as [markdown] in settings.json take editor settings, and a language-specific user value beats a non-language workspace value.

The documentation talks about editor settings in general rather than naming each font option, so test editor.fontSize and editor.fontFamily in your version before counting on it.

Do font settings work in dev containers and remote windows?

Yes, with one catch. The font has to be installed on the local computer that displays the window, not inside the container or on the remote host. One user whose Nerd Font glyphs failed over a remote connection fixed it by installing the font locally.

Dev container configuration files can carry the settings themselves.

How do I make comments italic?

Add a rule under editor.tokenColorCustomizations in settings.json that sets fontStyle to italic for the comment scope.

It only looks right if the font has an italic style. Cascadia Code ships a standard italic and a cursive one.

Which Font Settings to Change First in VS Code

YouTube player

On a fresh install, I’d make two edits and stop there: editor.fontSize first, then editor.fontFamily.

Size goes first because it costs nothing. There’s no download and you see the result immediately. A new family means installing the font on every machine you use. Weight, line height and ligatures are only worth touching when you have a specific complaint about them.

Bigger text does have a price. Each extra pixel shows fewer lines in the same window, so raise the size until reading stops tiring your eyes, and no further.

This was verified in November 2026. The order holds until Microsoft changes the platform defaults in VS Code’s source or ships the interface font setting requested in issue 519.

Bogdan Sandu

Stay sharp. Ship better code.

Every week: one curated article, one tool worth knowing, one tip you can use tomorrow. No noise, no padding.