idea设置自动编译,ctrl+s自动保存并编译
(2018-03-06 14:44:42)分类: 工作点滴 |
1,设置File ->Setting ->Compile:
勾选“Make project automatically”选项
2,勾选上图"Compile independent modules in parallel”选项
3,取消运行前make,在Run ->Edit Configuration中,选择 Defaults->Application,去掉下方Before里的make即可
4,File ->
Invalidate Caches / Restart ;
事实上我按照这个步骤做,并没有起到作用,具体原因暂时没有找到,不过这里提供第二种选择,如果上面的方法不可行的话,可以选择试试看
1,步骤1与上面方法步骤1是一样的
设置File ->Setting ->Compile:
勾选“Make project automatically”选项
2,使用快捷键ctrl+alt+shift+/,选择选项Registry,
并找到图中红框的选项"compller.automake.allow.when.app.running"并勾选
close掉即可,此时已经生效,修改代码后ctrl+s会自动重新编译
出处:http://blog.csdn.net/diaomeng11/article/details/73826564