问题描述
每次保存时我都希望编译项目,但是在属性中此选项为灰色,因此对于任何更改,我都必须单击保存",然后清理并构建.
I would like to compile the project every time I save, but in properties this option is greyed, so for any change I do I have to click save then clean and build.
如何避免每次代码修改时清理和构建?
How can I do to avoid to clean and build for every code modification?
推荐答案
如下所示更改netbeans项目的project.properties.
Change your netbeans project's project.properties like below.
-
在project.properties文件中的以下行查找
Find below line in project.properties file
compile.on.save.unsupported.javafx = true
将此值更改为false
Change this value to set to false
compile.on.save.unsupported.javafx = false
更改此文件后,将启用在保存时编译"选项,您一切顺利.
After change this file, compile on save option will be enabled and you are good to go.
这篇关于如何在保存时编译?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!