Colorize console output in Intellij products

ConsoleIntellij Idea

Console Problem Overview


I have a custom script with a default output. I'd like to colorize errors, warnings and infos. There's a way to do that in Intellij products (IDEA, PhpStorm, PyCharm)?

Console Solutions


Solution 1 - Console

It has been a while, but in case you are still interested, there is a new plugin for console colorizing: Grep Console.

Colorized build output in IntelliJ

Works nicely with Intellij 12.
Make sure you restart IntelliJ after installing the plugin. After you will see the plugin icon in the top left corner (white-red icon).

Solution 2 - Console

It's not supported right now (at least not for all the run configuration types). Please vote for:

Console output of the external tools is fixed to supports ANSI escape sequences to color text.

Solution 3 - Console

The colors configurations, mentioned in the other responses, work, if you run a regular application and you set the following VM option:

-Dspring.output.ansi.enabled=ALWAYS

Solution 4 - Console

Latest IntelliJ, PyCharm and PhpStorm have limited support for console output colorization.

Preferences > Editor > Colors & Fonts > Console Colors

enter image description here

Solution 5 - Console

If you are using spring boot, use Spring Boot to start your application instead of general application. Color will show up. No need to do anything else. It works for me.

Edit Configuration

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionLucas SouzaView Question on Stackoverflow
Solution 1 - ConsolekostjaView Answer on Stackoverflow
Solution 2 - ConsoleCrazyCoderView Answer on Stackoverflow
Solution 3 - ConsoleAlex BurduselView Answer on Stackoverflow
Solution 4 - ConsolekukidoView Answer on Stackoverflow
Solution 5 - ConsoleSteveView Answer on Stackoverflow