Vscode-docs: Add advice for setting up the powerlines font in the integrated terminal

Created on 11 Nov 2016  路  19Comments  路  Source: microsoft/vscode-docs

Most helpful comment

Install PowerlineFonts

git clone https://github.com/powerline/fonts.git --depth=1 ~/Downloads/fonts-powerline && ~/Downloads/fonts-powerline/install.sh

Install Awesome Terminal Fonts
git clone https://github.com/gabrielelana/awesome-terminal-fonts ~/Downloads/awesome-terminal-fonts && ~/Downloads/awesome-terminal-fonts/install.sh

Edit vscode settings.json
"terminal.integrated.fontFamily": "'Hack', 'FontAwesome'"

if you prefer another font
"terminal.integrated.fontFamily": 'Meslo LG M for Powerline', 'FontAwesome'

Screenshot from 2019-07-17 18-46-36

All 19 comments

image

didn't work on my Ubuntu. screenshot attached

@bochen2014 try wrapping the value in quotes like https://github.com/Microsoft/vscode/issues/15119#issuecomment-322609608

it's most certainly not straight forward but i finally figured it out

image

@bochen2014 how did you land on that string?

@Tyriar How can I have this two fonts working on my VSCode terminal? (_Operator Mono + Inconsolata for Powerline_)

screen shot 2018-07-24 at 10 31 33

I have done this and ASCII characters are showing up correctly but now I want to change my base font to look as my iTerm config also with the theme colors:

{
  "terminal.integrated.fontFamily": "'inconsolata for powerline'",
}

iTerm look and feel:
screen shot 2018-07-24 at 10 39 42

@AlexVentura we don't support that currently (and this is the first time I've seen the request), feel free to create a feature request in https://github.com/xtermjs/xterm.js

@Tyriar So, is it not possible to use two fonts? or is it not possible to use specific colors?
Actually, I can deal with the colors but what about the fonts I would like to use one for the text _(Operator Mono)_ and a different one for the ASCII characters which is working fine right now _(Inconsolata for Powerline)_ is that possible?

@AlexVentura I'm not sure what you mean with the colors, the colors should just work as you expect I would think? It's not possible to specify 2 fonts, unless fallback works "terminal.integrated.fontFamily": "'inconsolata for powerline', 'operator mono'" (ie. inconsolata doesn't have the characters that operator mono does).

It will also be a bit tricky to implement as the size of a cell means something different with 2 fonts.

@Tyriar I was referring to be able to change the colors from the terminal to be the same as in my iTerm config but the colors is a nice to have. I was more interested in the fonts because I would like to have the terminal with the Operator Mono font but it does not have the required ASCII characters as the Powerline font has, that's why I use to use two fonts on iTerm and wondered to have the same look and feel in the VSCode terminal.
But thanks for clarifying this topic.

@AlexVentura you can override the theme colors for the terminal in settings:

image

@Tyriar Cool, I will try to do it thank you so much!

My issue was not having the font weight in vs code match the weight of the font on my system.

{ "terminal.integrated.fontWeightBold": "normal" }

Fixed my special characters appearing as boxes.

I also has some problems to set this parameter because there are "User" and "Workspace" setting and the "User" setting seem ignored

Install PowerlineFonts

git clone https://github.com/powerline/fonts.git --depth=1 ~/Downloads/fonts-powerline && ~/Downloads/fonts-powerline/install.sh

Install Awesome Terminal Fonts
git clone https://github.com/gabrielelana/awesome-terminal-fonts ~/Downloads/awesome-terminal-fonts && ~/Downloads/awesome-terminal-fonts/install.sh

Edit vscode settings.json
"terminal.integrated.fontFamily": "'Hack', 'FontAwesome'"

if you prefer another font
"terminal.integrated.fontFamily": 'Meslo LG M for Powerline', 'FontAwesome'

Screenshot from 2019-07-17 18-46-36

Why I tried every single setting in here and there https://github.com/microsoft/vscode/issues/15119 but my VScode keep saying : "The terminal only supports monospace fonts."

Do anyone know the solution ?

never mind, I install proper patched font - https://github.com/abertsch/Menlo-for-Powerline

and it works with this setting:

"terminal.integrated.fontFamily": "Menlo for Powerline"

Remember to not to press the "monospace" dialog that Visual Studio Code presents as this would set "terminal.integrated.fontFamily": "monospace" and restart the VS Code

Thanks to @Simon Larsen https://github.com/icefire1 and Matt Stratton http://github.com/mattstratton from this post : https://dev.to/mattstratton/making-powerline-work-in-visual-studio-code-terminal-1m7

Hi, I'm new at macOS and I'm very confused
I have this question mark at the end and I'm unsure if this is alright. Nor do I have anyone to ask.
Thanks in advance, here is my problem:

Screenshot 2020-07-14 at 11 23 23 PM

I'm unsure what to do or where do you find settings for it. I've tried to follow this topic but it's hard.

Hi @dusanbass You could try posting a question to Stack Overflow. This repo is for VS Code documentation.
For example, here's an existing post on Stack Overflow that might be helpful https://stackoverflow.com/questions/42271657/oh-my-zsh-showing-weird-character-on-terminal

Hi @gregvanl
Thanks! I will do that!
But in a meantime I've found out that this indicates that uncommitted changes inside the repository.

Was this page helpful?
0 / 5 - 0 ratings