DEV Community

Cover image for How to show Nerd Fonts in Visual Studio Code
owl✨
owl✨

Posted on

104 1 1 1 2

How to show Nerd Fonts in Visual Studio Code

Nerd Fonts offer a fantastic collection of icons that seamlessly integrate into various applications on your computer, from Notepad to email clients. However, configuring these icons to appear in Visual Studio Code requires a specific setup. In this article, we will guide you through the process of displaying Nerd Fonts within Visual Studio Code.

Installing Nerd Fonts

To install Nerd Fonts, follow the official website's instructions. If you're a Mac user, I recommend using the 'brew' command for the installation. You can find the fonts and installation details at:
https://www.nerdfonts.com/font-downloads

Setting Visual Studio Code

Without proper configuration, Visual Studio Code unfortunately doesn't display Nerd Fonts icons correctly. Therefore, you need to perform the following setup in your Visual Studio Code:

  1. Open the Settings Page.
  2. Search for settings using the keyword 'terminal.integrated.fontFamily'.
  3. Enter "'Hack Nerd Font'" into the 'Editor: Font Family' field, as shown below:

The steps outlined above are demonstrated in the following movie:

Image description

(Note: I attempted to configure the settings according to the official website's instructions as https://code.visualstudio.com/docs/terminal/appearance, which suggested using "Hack NF" for the 'Editor: Font Family' field. However, this didn't work as expected. Instead, using "'Hack Nerd Font'" in the field worked properly.)

Conclusion

After configuration, Nerd Fonts icons appear in your Visual Studio Code. Have a good VSCode life!

Image description

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

Top comments (8)

Collapse
 
brianmmdev profile image
Brian Morrison II

THANK YOU! Was able to finally get my terminal looking as good in VSC as the main one.

Collapse
 
dmferrari profile image
Martin Ferrari

Great article!

BTW: can you share the configuration for that terminal prompt? Thanks! :)

Collapse
 
manvendrask profile image
Manvendra Singh

You can have a look at this project. starship.rs/

Collapse
 
silopolis profile image
Jérémie Tarot

Thanks for the tip :)
Dotty starship config

Collapse
 
destinedcodes profile image
Destiny Saturday

Nice Article @owl777, if you don't mind, please share your ~/.config/starship.toml file. you configuration looks so beautiful

Collapse
 
manvendrask profile image
Manvendra Singh
Comment hidden by post author
Collapse
 
sidcodeme profile image
sidcode

Great Sir!!
I fixed my vscode
Thank you!!

Collapse
 
treelingleaf profile image
Treeleaf

感谢,解决问题了

Some comments have been hidden by the post's author - find out more

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay