<!--
  canonical-url: https://www.avonture.be/blog/vscode-jetbrains-font
  published:     2024-09-19
  This is a static plain-Markdown mirror generated at build time.
  Visit the canonical URL above for the fully rendered page, with images and interactive components.
-->

# Using the JetBrains Mono font in vscode

> Improve your coding experience! Learn how to install the free and highly legible JetBrains Mono font and enable beautiful font ligatures in VSCode with this quick configuration guide.

---
![Using the JetBrains Mono font in vscode](/img/v2/vscode_tips.webp)

**TL;DR**

This article shows how to install the free JetBrains Mono font (which clearly distinguishes O/0 and I/l, and supports code ligatures) and configure VSCode to use it via the `editor.fontFamily` and `editor.fontLigatures` settings in `settings.json`.

As you know, VSCode is highly customizable; you can install [a plethora of addons](/blog/vscode-export-list-of-extensions), change the default theme, and use your preferred font.

*The same font, installed as a Nerd Font variant, is what makes the icons of [Powerlevel10k](/blog/powerlevel10k_sandbox) and [eza](/blog/linux-eza) display correctly in your terminal — so it's worth setting it in [Windows Terminal](/blog/windows-terminal) too.*

Just take a look at the **JetBrains Mono font**. This is a free-of-charge font, for both commercial and non-commercial purposes.

## Why this font

* It's free, for both commercial and non-commercial use.
* It's particularly legible: an O (the letter) and a 0 (the number), an I (upper-case i) and an l (lower-case L), are clearly distinct — no more guessing in a terminal or a diff.
* It comes with nice ligature elements: sequences like `!=`, `=>` or `->` are rendered as a single, cleaner glyph instead of separate characters.

Visit <https://www.jetbrains.com/lp/mono/> to see the potential of the font.

## Install JetBrains Mono font

It's easy: go to <https://www.jetbrains.com/lp/mono/#how-to-install> and click on the `Download font` button.

Once downloaded, go to your downloads folder and unzip the file then jump into the newly created `JetBrainsMono` folder and go into `fonts/ttf`. You'll find there several subfolders. Under Windows, just open the first folder, select all files and do a right-click. From the contextual menu, select `Install` as you can see below:

![Install JetBrains Mono font](./images/install_font.webp)

## Configure VSCode to use JetBrains Mono font

* Press `CTRL`+`,` to open your settings page
* Under the `Text Editor --> Font` section, type `JetBrains Mono` for the font family.

But the easier way is:

* Press `CTRL`+`,` to open your settings page
* In the top right part of the screen, retrieve the `Open Settings (JSON)` button and click on it

![Open settings.json](./images/open_settings_json.webp)

* Then copy paste these entries:

**.vscode/settings.json**

```json
{
  "editor.fontFamily": "JetBrains Mono",
  "editor.fontSize": 14,
  "editor.fontLigatures": true
}
```

Save, close VSCode and open it again (or simply press `CTRL`+`SHIFT`+`P` and run `Developer: Reload Window`)

## Conclusion

Install the font once at the OS level, add two lines to `settings.json`, and every editor tab
benefits from clearer character shapes and ligatures from then on. Now that your editor looks the
way you want, [CodeSnap](/blog/vscode-codesnap) lets you turn any selection into a
shareable screenshot that shows off that font.
