How to Change the Editor Font and Font Size in Visual Studio Code

To change the code editor in Visual Studio Code, open Settings and find Editor: Font Family and Editor: Font Size. You can also search for editor.fontFamily and editor.fontSize. The terminal and window zoom use separate settings.

Change the editor font and size in Settings

  1. Open Settings with Ctrl+, on Windows or Linux, or ⌘+, on macOS.
  2. Choose User for the active profile’s defaults or Workspace to change only the open project.
  3. Search for @id:editor.fontFamily and enter the name of an installed font. Separate fallback font names with commas.
  4. Search for @id:editor.fontSize and enter a number such as 16. Open a code file to check the size and the characters you use.

Microsoft’s guide to the VS Code Settings editor

Edit settings.json directly

Run Preferences: Open User Settings (JSON) from the Command Palette. The example below uses Windows fonts. If your file already has other settings, add or update only these two properties inside the existing outer braces, then save.

{
  "editor.fontFamily": "Consolas, 'Courier New', monospace",
  "editor.fontSize": 16
}

VS Code tries the families in order. If the first is unavailable or lacks a particular character, a later font can supply it. On macOS or Linux, use a monospaced font installed on that system. Enter editor.fontSize as a number such as 16 without a unit.

Choose where the changes apply

User applies to the active profile. A Workspace value overrides the same general User setting for that project. A committed .vscode/settings.json can affect teammates, so use User for personal preferences.

If only some files look different, check their language mode and settings under entries such as [javascript]. A language-specific setting can take precedence over a general one.

VS Code settings precedence

Editor, terminal, and window zoom settings

Setting keys What to change
editor.fontFamily / editor.fontSize Code editor font and text size
terminal.integrated.fontFamily / terminal.integrated.fontSize Integrated terminal font and text size
window.zoomLevel Scale of the entire window, including sidebars

To enlarge tabs and sidebars along with the editor, use View → Appearance → Zoom In or set window.zoomLevel. To make just the code larger, adjust the editor size.

The terminal can use editor.fontFamily when its own font family is unset. Set terminal.integrated.fontFamily explicitly to keep an independent terminal font.

Microsoft’s window zoom settings · Microsoft’s terminal font settings

If the font stays the same or you want to reset it

If the font looks unchanged, check its exact family name in your operating system’s installed fonts. Open code that contains similar shapes such as 0 and O, or 1 and l, to compare. If only a few characters look different, they may be coming from a fallback font.

To undo a change, open its gear menu in the same Settings tab and choose Reset Setting. In JSON, remove only the key you changed. Check for a Workspace or language-specific override if a file still uses a different value.