Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Colorize console output in Intellij products

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)?

like image 758
Lucas Souza Avatar asked Feb 23 '12 20:02

Lucas Souza


People also ask

How do I change the color of my console in IntelliJ?

Press Ctrl+Alt+S to open the IDE settings and select Editor | Color Scheme. , then click Export and select IntelliJ IDEA color scheme (. icls).

How do I change colors in IntelliJ?

In the Settings/Preferences dialog ( Ctrl+Alt+S ), select Appearance & Behavior | Appearance. Select the UI theme from the Theme list: IntelliJ Light: Traditional light theme for IntelliJ-based IDEs. macOS Light or Windows 10 Light: OS-specific light theme available as a bundled plugin.

How do I get full console log in IntelliJ?

In the run/debug configuration that will be used for launching the app, click the Logs tab. The Edit Log Files Aliases table displays the list of log files. Select Save console output to file Specify the path to the file.


2 Answers

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).

like image 165
kostja Avatar answered Oct 04 '22 07:10

kostja


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

  • IDEA-23976 Add ability to color/highlight console output
  • IDEA-69880 Support for colors in console output

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

like image 26
CrazyCoder Avatar answered Oct 04 '22 07:10

CrazyCoder