Intellij“自动制作项目”困境 [英] Intellij "Make project automatically" woes

查看:147
本文介绍了Intellij“自动制作项目”困境的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

回到12月,我从Eclipse切换到IntelliJ,但在几天内我换回了。

Back in december I switched from Eclipse to IntelliJ but within a couple of days I switched back.

今天我再次尝试了IntelliJ,基本上我只剩下一个问题。

Today I tried IntelliJ again and basically I have only one issue left.

问题是我想在保存时编译Java类。原因是我正在使用JRebel来获取新类。
我不想每次都按Command-F9来编译已更改的类。

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 Command-F9 everytime to compile the changed class.

我读过有关EclipseModel插件但这似乎不起作用(可以在插件页面的评论中阅读: http://plugins.jetbrains。 com / plugin /?id = 3822

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

我还尝试了自动生成项目,但这会编译所有类,而不仅仅是更改的类。这只是不是更耗时,它也会导致JRebel重新加载所有类......

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

有什么建议吗?

推荐答案

我最终创建了一个执行Save和Make Build的宏。
我然后将Ctrl + S快捷键分配给此宏,然后它工作正常。

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.

这篇关于Intellij“自动制作项目”困境的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆