Window > Preferences > General > Workspace [X] Save automatically before build
Programming Tips - Can I get Eclipse to save before builds?
Date: 2013feb16
Product: Eclipse
Keywords: autosave
Q. Can I get Eclipse to save before builds?
A. Yes, the option is here: