In this post I’ll explain how to quickly fix it.
VS Code defaults the terminal’s font to the editor’s font, and since the Agnoster theme needs Powerline, the terminal outputs non-sense characters.
- Zsh installed, obviously…
- VS Code, obviously…
Installing a monospaced version of Powerline
Clone the github repository
git clone https://github.com/abertsch/Menlo-for-Powerline.git
Move the font to the fonts folder
sudo mv "Menlo for Powerline.ttf" /usr/share/fonts/
Refresh the fonts cache
sudo fc-cache -vf /usr/share/fonts/
Setting the font in VS Code
Go to your UI Settings: CTRL + SHIFT + P > UI Settings
Search for Terminal Font and set the new font:
As you can see in the terminal, the new font gets applied and everything works as expected.