Visual Studio Code is the most popular and the first choice among developers in terms of a code editor.
We spent hours in VS code, and we may grow tired and bored of looking at the same font that VS code provides by default.
Changing a font could help you, like better code vision, focus, and a fresh look.
So, let's see how to change or install a font in VS Code (windows).
- Visual Studio Code - Download Here
- Windows PC
We will start by downloading the font for our code editor. You can download any of your favorite fonts but make sure that it is in the Monospace font category (although not mandatory).
Some of the popular font websites are:
Once you have downloaded and extracted a Font file, you can select your desired weight file and click on it. You will see a preview screen with each character. Just click on Install, given at the top left corner.
To check if the font is installed or not, you have to go to the font settings menu. To do so, press the windows key and search font settings. You should see the font settings shortcut, click on it.
Search for the font you have just installed. If you see the font, you are good to go! If not, try re-installing it and then restart your PC.
Open VS code and goto settings. You can go to settings by pressing Ctrl + , together or by clicking File > Preferences > Settings.
In Font Family input field, type the font family name you just installed at the very start from the given font family names and then press Ctrl + S to save the changes.
If you are using some special font, then you might also want to enable the font ligature option in your code editor. To do so, again go to settings and search font ligatures in the search field or you can also click Text Editor > Font > Font Ligatures.
Click Edit in settings.json, a settings.json file should open.
"editor.fontLigatures": false, to
If you still not seeing the changes, then just restart the VS code editor or restart your PC.
Thank you for reading! ❤