Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compile on run in IntelliJ

When I run a test in IntelliJ, it doesn't automatically compile the file first. Is this normal behavior? I know I can use eclipse mode to auto compile when I save, but it seems logical to auto compile before running the file. Is this possible in IntelliJ?

like image 638
Jeff Storey Avatar asked Nov 06 '12 23:11

Jeff Storey


People also ask

How do I get the run option in IntelliJ?

From the main menu, select Run | Show Running List. In the top-right corner of the editor, IntelliJ IDEA shows a list with all active applications.

What is a run configuration IntelliJ?

IntelliJ IDEA uses run/debug configurations to run, debug, and test your code. Each configuration is a named set of startup properties that define what to execute and what parameters and environment should be used.

How do I run anything in IntelliJ?

You can run anything with ⌃⌃ (macOS), Ctrl+Ctrl (Windows).


1 Answers

There is a "Before Launch" option group under configuration screen, that has "Make" as one of the options. If this option is checked, the whole module/project will be rebuilt prior launching.

If you want this option to persist for all future configurations automatically created by IntelliJ, mark it under relevant configuration in "Defaults" group.

like image 81
Vic Avatar answered Nov 15 '22 07:11

Vic