Making Powerline Work In Visual Studio Code Terminal

Matty Stratton - Nov 1 '17 - - Dev Community

As I mentioned in a previous post, I'm totally digging on the embedded terminal in Visual Studio Code. However, as I also mentioned, it wasn't properly representing my powerline prompt.

zsh prompt in VS Code

zsh prompt in iTerm

I solved the problem today - in case you are having a similar issue, it's a pretty easy fix. Granted, I've only proven this out on OS X, but I believe a similar solution would apply on Windows or Linux.

  1. Download proper patched font - https://github.com/abertsch/Menlo-for-Powerline
  2. In your User Settings (Code | Preferences | Settings) add this:
{
"terminal.integrated.fontFamily": "Menlo for Powerline",
}
Enter fullscreen mode Exit fullscreen mode

Tadah! My prompt in Code now looks right!

(Yes, the colors look different than the previous screenshot; since taking those screenshots I changed from using the powerlevel9k oh-my-zsh theme to instead use powerline-go.)

. . . . . . . . . . . . . . .
Terabox Video Player