I'm trying to integrate zsh on my VSC setup but apparently arrows are not recognized by it.
My zsh theme is agnoster and I've already tried adding "terminal.integrated.fontFamily": "Meslo LG M DZ for Powerline"
with no success. Anyone experienced something like this and can give me a hand? Thanks.
To change font in the Core Shell on your Mac, choose Core Shell > Preferences, then click General and choose a built-in font from the font panel.
You can change the terminal font setting for VS Code and use a Nerd Font as suggested in Starship's documentation. To do that either go to the settings and search for Terminal Font and update the value or you can add this to your settings. json . "terminal.
Following this little guide solved the issue making-powerline-work-in-visual-studio-code-terminal.
IMPORTANT: if you already have a powerline font installed (e.g. it looks fine inside your system terminal), skip step 1.
Install a patched version of your desired font directly from https://github.com/powerline/fonts. Apparently doing the "quick installation" (e.g. sudo apt-get install fonts-powerline
) does not work in this case. So you can install manually downloading the .ttf
file directly or running the install script ./install.sh
provided. For instance you can do the following:
Clone the repository:
git clone https://github.com/powerline/fonts && cd fonts
Run ./install.sh
to install them all or install one specific font by going inside its directory and opening the .ttf
file. For instance, manually installing DejaVu Sans Mono for Powerline
:
cd DejaVuSansMono
DejaVu Sans Mono for Powerline.ttf
Add the terminal.integrated.fontFamily
to your User Settings settings.json
in VSCode specifying the powerline font to use. For instance, if I want to use DejaVu Sans Mono for Powerline
:
{
[...]
"terminal.integrated.fontFamily": "DejaVu Sans Mono for Powerline",
[...]
}
Restart Visual Studio Code
For me it worked for linux and as well as manjaro (i don't know why others solution weren't working for me).
Download this font download font from here , Then create a folder named "Meslo" and extract all the fonts inside it.
Move this folder to /usr/share/fonts/truetype/
Run this command:
sudo fc-cache -vf /usr/share/fonts/
In settings.json of vscode add this line:
"terminal.integrated.fontFamily": "MesloLGM Nerd Font"
Save and Restart if necessary, it should work. Done.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With