Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 296
L. D. James Avatar asked May 30 '14 16:05

L. D. James


2 Answers

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

enter image description here

Two other settings are here:

enter image description here

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

enter image description here

like image 87
Java42 Avatar answered Nov 15 '22 14:11

Java42


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

like image 24
Memin Avatar answered Nov 15 '22 12:11

Memin