20

Cobalt2 theme does not render properly in the terminal in IntelliJ but works fine in the Mac terminal. How do I correct this?

Madeleine Smith
  • 411
  • 1
  • 6
  • 12
  • You should configure IntelliJ to use the patched fonts you are using on terminal. The font on your screenshot doesn' t have the special glyphs. – Iacchus Aug 21 '21 at 18:05

5 Answers5

24

Thought I'd add for anyone Googling this "zsh themes being broken in IntelliJ" ...especially Powerlevel10k ... you can conditionally switch the theme to a compatible one for your IntelliJ console, and keep the nice one for your main terminal. In .zshrc :

if [[ $__INTELLIJ_COMMAND_HISTFILE__ ]]; then
  ZSH_THEME="robbyrussell"
else
  ZSH_THEME="powerlevel10k/powerlevel10k"
fi

Hope that helps someone :-)

BaronVonKaneHoffen
  • 1,902
  • 1
  • 21
  • 29
9

I'm using IntelliJ 2022.1.1 CE + Oh-My-Zsh + Powerlevel10k, below setting made it work for me:

  • Go to "IntelliJ -> Preferences -> Appearance -> Themes" and select "Sync with OS"
  • Restart IntelliJ

enter image description here

Result: enter image description here

Credit: this answer is inspired by the answer from @Kyle Pillay.

maximus
  • 1,290
  • 1
  • 14
  • 18
5

Please follow this known bug for updates:

CrazyCoder
  • 389,263
  • 172
  • 990
  • 904
  • 3
    seems like these is happening in phpstorm 2020.2 , still not resolved :(. zsh themes are not showing properly. – Rakibul Haq Jul 30 '20 at 19:39
2

Changing the color scheme in IntelliJ to the same color scheme you're using in your OS terminal should solve this.

I'm using the Dracula Theme in iTerm2, and I installed the IDE color scheme from here Jetbrains Dracula Theme and it's all displaying as expected.

Here's what my PHPStorm terminal looks like now.

IntelliJ(PHPStorm) Terminal with Dracula Theme

  • 1
    Did u find the way to fix the incorrect height of the background line? – M. Alekseev Sep 15 '20 at 07:24
  • Sorry for the late response. I didn't, would probably take some digging to fix that. I moved onto a project shortly after this post and with it came the need to use VSCode so I didn't take the time to figure it out – Kyle Pillay Nov 03 '20 at 13:20
1

Select the "JetBrains Mono" font in the Console Fonts option.