Hey folks! So, Iāve been tinkering around with my Manjaro system running KDE Plasma, and I noticed something strange when I fired up Visual Studio Code for coding. You see, Manjaro comes with Zsh as the default terminal, and Iām a big fan of its features. But when I started using Zsh in Visual Studio Code, I ran into a problem ā the cool icons that usually appear in the terminal were missing! It turns out, this isnāt just a problem on my Manjaro setup; itās something that can happen on other systems too. But donāt worry, Iāve done some sleuthing and found a fix. Let me show you how to get those Zsh icons back in Visual Studio Code.
Solution
Iām using Manjaro with (KDE) and this solution worked for me:
- Install the Meslo Nerd Font:
- For Manjaro and Arch based distroās:
sudo pacman -S ttf-meslo-nerd-font-powerlevel10k
- For Ubuntu and Debian based distroās:
sudo apt-get install fonts-meslo
<p><strong>For Other Linux Distributions:</strong> The installation process may vary slightly depending on your Linux distribution. However, you can typically install the Meslo Nerd Font using your package manager. Simply search for āfonts-mesloā or āttf-meslo-nerd-font-powerlevel10kā and install it. Once installed, follow the same steps mentioned above to configure the font settings in Visual Studio Code.</p>
-
Configure Vscode Font Settings: To ensure that Visual Studio Code displays the Zsh icons correctly, follow these steps:
- Open Visual Studio Code.
- Navigate to
Terminal > Integrated: Font Family
. - Set the font family to āMesloLGS NFā.
-
Alternatively, Change Font Settings Directly in settings.json: You can also change it directly in the
settings.json
file located in the.config/Code/User
directory. Look for the propertyterminal.integrated.fontFamily
.
"terminal.integrated.fontFamily": "MesloLGS NF"
-
Restart Visual Studio Code: After making the font changes, restart Visual Studio Code.
-
Enjoy Your Enhanced Terminal Experience: Your terminal font should now correctly display the Zsh icons!
Moreover, this method will also work for macOS users, although the font installation process might differ slightly.
Happy vscoding! š