IntelliJ IDEA“自动创建项目"麻烦 [英] IntelliJ IDEA "Make project automatically" woes

查看:285
本文介绍了IntelliJ IDEA“自动创建项目"麻烦的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

12月份,我从Eclipse切换到IntelliJ IDEA,但是几天后又切换回IntelliJ IDEA.今天,我再次尝试了IntelliJ,基本上只剩下一期了.

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.

问题是我想在保存时编译Java类.原因是我正在使用JRebel,它将选择新类.我不想每次都按 + 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 +F9 every time to compile the changed class.

我阅读了有关EclipseModel插件的信息,但这似乎不再起作用了,可以在插件页面的注释中看到:

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.

有什么建议吗?

推荐答案

我最终创建了一个宏,该宏执行保存和生成操作. 然后,我将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 IDEA“自动创建项目"麻烦的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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