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.ttffile directly or running the install script./install.shprovided. For instance you can do the following:-
Clone the repository:
git clone https://github.com/powerline/fonts && cd fonts -
Run
./install.shto install them all or install one specific font by going inside its directory and opening the.ttffile. For instance, manually installingDejaVu Sans Mono for Powerline:cd DejaVuSansMono- Open
DejaVu Sans Mono for Powerline.ttf - Install the font
-
-
Add the
terminal.integrated.fontFamilyto your User Settingssettings.jsonin VSCode specifying the powerline font to use. For instance, if I want to useDejaVu Sans Mono for Powerline:{ [...] "terminal.integrated.fontFamily": "DejaVu Sans Mono for Powerline", [...] } -
Restart Visual Studio Code