How to enable Eclipse to autobuild/autosave changes before run (CDT)

给你一囗甜甜゛ 提交于 2019-11-27 06:08:55

问题


I'm trying to conveniently have the updated code in effect when I click the run button in Eclipse. At present it will run the last build and I have to manually click build before clicking run to see the changes.

Can someone advise me on how to configure Eclipse to autobuild the current project (if changes has been made) before running the code?


回答1:


There are multiple settings for auto building. The one you could be missing is the setting under Launching.

Two other settings are here:

And the last setting is the one you likely already know about:




回答2:


If you want to automatically build your project on save (or before run, if needed), then from tool-bar menu go to

Project -> Properties -> C/C++ Build -> Select Behaviour Tab on the right panel, -> tick the "Build on resource save(Auto build)" , finally hit OK

That is it...



来源:https://stackoverflow.com/questions/23959595/how-to-enable-eclipse-to-autobuild-autosave-changes-before-run-cdt

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!