Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can the IntelliJ IDEA run tab have color?

I am running a spring boot application inside IntelliJ IDEA and noticed a difference if I run it via the run tab (run menu) and via manual command from the terminal tab.

If I run it through a maven run target (play button), I do not see any colors inside the 'run' tab. If I run it via 'mvn spring-boot:run from the 'terminal' tab I see the pretty color highlights. The maven run configuration also runs the same command, spring-boot:run.

Application started from the play button/run configuration (run tab): run tab Application started from the terminal tab via mvn spring-boot:run (terminal tab): terminal tab

like image 861
Stefan Gloutnikov Avatar asked Mar 11 '17 01:03

Stefan Gloutnikov


People also ask

Can we change IntelliJ background color?

Change the UI theme 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.

How do I show the Run tab in IntelliJ?

Run Toolbar Click to open the Dump view where you can view all threads of the current process. Click this button to terminate the current process gracefully using in-process internal mechanisms. Click this button to terminate the current process externally by means of the standard shutdown script.

How do I change my console color in IntelliJ?

Press Ctrl+Alt+S to open the IDE settings and select Editor | Color Scheme. Select the setting pages related to consoles: Console Colors. Console Font.


1 Answers

Inside build.gradle, add the following block to get colorized log output when running your Spring Boot app inside IntelliJ IDEA via gradle bootRun.

bootRun {
    jvmArgs = ["-Dspring.output.ansi.enabled=ALWAYS"]
}
like image 154
jkwuc89 Avatar answered Sep 28 '22 02:09

jkwuc89