Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ IDEA "Make project automatically" woes

Back in December I switched from Eclipse to IntelliJ IDEA but within a couple of days I switched back. Today I tried IntelliJ again and basically I have only one issue left.

The issue is I want to compile Java classes on saving. The reason is I'm using JRebel which will pick up the new class. I don't want to hit +F9 every time to compile the changed class.

I read about the EclipseModel plugin but this does not seem to work (anymore) as can be read in the comments on the plugin's page: http://plugins.jetbrains.com/plugin/?id=3822

I also tried the "Make project automatically" but this compiles ALL classes and not only the changed class. This is only not more time consuming it will also cause JRebel to reload all classes.

Any suggestions?

like image 656
Marcel Overdijk Avatar asked Jan 31 '13 21:01

Marcel Overdijk


People also ask

How do I enable build automatically in IntelliJ?

Press Ctrl+Alt+S to open the IDE settings and select Build, Execution, Deployment | Compiler. On the Compiler page, select Build project automatically. Now when you make changes in the class files, IntelliJ IDEA automatically performs the incremental build of the project.

How do I stop auto compile in IntelliJ?

Open the Setting > Build Tools page. 2. Disable the "Reload changes in build scripts" option.

How do I create a junit test case automatically in IntelliJ?

Right-click the test root folder or package in the test root folder in which you want to create a new test and select New | Java Class. Name the new class and press Enter . Press Alt+Insert and select Test Method to generate a new test method for this class. Name the new method and press Enter .


1 Answers

I ended up creating a Macro which does the Save and the Make Build. I then assigned the Ctrl+S shortcut to this Macro and then it works fine.

like image 129
Marcel Overdijk Avatar answered Oct 18 '22 15:10

Marcel Overdijk