c++eclipseeclipse-cdtautosaveauto-build

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?


Solution

  • 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