Eclipse: Save files without asking when I click run

Eclipse

Eclipse Problem Overview


Is there a way to save files without asking in Eclipse? Every time I click Run, it asks me if I want to save the file, and I always do.

Eclipse Solutions


Solution 1 - Eclipse

Preferences > Run/Debug > Launching.

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

Solution 2 - Eclipse

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

Solution 3 - Eclipse

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

Solution 4 - Eclipse

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

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Question700 SoftwareView Question on Stackoverflow
Solution 1 - EclipsedtyView Answer on Stackoverflow
Solution 2 - EclipseDeerashaView Answer on Stackoverflow
Solution 3 - EclipseMarcinView Answer on Stackoverflow
Solution 4 - Eclipseno.good.at.codingView Answer on Stackoverflow