Accepted answer

Preferences > Run/Debug > Launching.

There's a setting called "Save required dirty editors before launching". Set it to "Always".


You can select the Automatically save resources checkbox the next time it prompts but I believe that's a per project setting.


Or you can choose the option in Window->Preferences->General->Workspace and check the option called "Save automatically before build". This would make your life definitely easier


There should be a check box on that Save File dialog:Eclipse Save Prompt on Run

Related Query

More Query from same tag