Cobalt2 theme does not render properly in the terminal in IntelliJ but works fine in the Mac terminal. How do I correct this?
-
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 Answers
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 :-)

- 1,902
- 1
- 21
- 29
-
I was having exactly the same problem and this solution solved the problem. Hopefully Intellij will fix this problem in the future – cunhaf Oct 22 '20 at 16:05
-
This helped me out with fixing powerline and bash. Thanks so much! – Robert Moskal Jul 08 '21 at 14:48
-
2FYI, PyCharm terminal here has the ENVVAR: TERMINAL_EMULATOR=JetBrains-JediTerm – Iacchus Aug 21 '21 at 18:07
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
Credit: this answer is inspired by the answer from @Kyle Pillay.

- 1,290
- 1
- 14
- 18
-
This doesn't work with 2022.3.3 RC version of Intellij Idea. Any idea how we can solve for that? Thanks! – Shaik Zakir Hussain May 17 '23 at 06:55
Please follow this known bug for updates:
- IDEA-165506 Incorrect style for zsh theme

- 389,263
- 172
- 990
- 904
-
3seems 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
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.

- 36
- 2
-
1Did 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