I've been using VS Code lately, since Atom is being killed off. I also switch to using ZSH with OhMyZsh a while back. I had noticed that while using the integrated terminal in VS Code, all of my nice status icons were showing as empty boxes, indicating that the font didn't have symbol support compiled in.
I found this post for fixing the problem on OSX, and was able to adapt it to my needs.
- Press Ctrl + Shift + P and choose Preferences: Open User Settings (JSON)
- Add these lines (in my case) to your config:
"terminal.integrated.defaultProfile.linux": "zsh",
"terminal.integrated.fontFamily": "SauceCodePro Nerd Font"
SauceCodePro is my preferred font currently, being the Nerd Fonts version of Adobe's Source Code Pro font.
Once you save the settings.json file, the terminal (if visible) should immediately update and your symbols should be visible. This of course assumes that you have a working font with symbols already installed and that you specify it correctly on the second line.
No comments:
Post a Comment