A custom font can make your coding experience more comfortable and even improve readability.
In this quick guide, Iโll show you how to install and set up a custom font in VS Code.


Letโs dive in! ๐คฟ
๐น Since weโre talking about visual things, I recommend watching this video as well
Download and Install a Custom Font
First, download the font you want to use. You can find many great options at Google Fonts, but for this tutorial, Iโll be using the JetBrains Mono โ a font designed specifically for developers.
Installing the Font (by Operating System)
๐ Windows
โ Unzip the archive.
โ Select all font files, right-click, and choose Install.
๐ macOS
โ Unzip the archive.
โ Select all font files and double-click Install Font.
๐ Linux
โ Extract the font files to ~/.local/share/fonts
(or /usr/share/fonts
for system-wide install).
โ Run the following command to refresh the font cache:
fc-cache -f -v
๐กGood to know
Set the Custom Font in VS Code
Now, letโs configure VS Code to use the new font!
1๏ธโฃ Open Command Palette:
- Press
CTRL
+SHIFT
+P
(Windows/Linux) orCMD
+SHIFT
+P
(macOS). - Search for Preferences: Open User Settings (JSON) and select it.
2๏ธโฃ Add or update the following lines in your settings.json
file:
"editor.fontFamily": "'JetBrains Mono'",
"editor.fontLigatures": true,
โ Make sure the JetBrains Mono text is wrapped in single quotes.
๐กGood to know
editor.fontLigatures
to enable them.
My personal preference is to use the JetBrains Mono font with a line height of 1.7. If you use other fonts, I recommend playing around with the line height, line spacing, and font size until you find what works best for you.
Thatโs it! Youโve successfully set up a custom font in VS Code ๐
Got a favorite programming font? Let me know in the comments!
Happy coding! ๐
Let me know what you think about this article in the comments section below.
If you find this article helpful, please share it with others and subscribe to the blog to support me, and receive a bi-monthly-ish e-mail notification on my latest articles.