views:

666

answers:

3

Does anyone know if there's a way to get Eclipse to do a "Save all" before building java code? (I don't use the "Build automatically" option, I'm talking when you use "Ctrl+B" to do a build all)

I've dug thru the preferences, and can't seem to find anything, so I figured I'd check the hive mind at Stack Overflow just in case.

I'm using Ganymede, V3.4.1, Build id: M20080911-1700, if it's relevant.

Thanks in advance, Dave Mackie

+7  A: 

Under preferences General->Workspace, there's an "Save automatically before build" option.

gusterlover6
A: 

sweet! I must've missed that (although I figured it would be in the build section)

thanks.

dw.mackie
A: 

You can also get Eclipse to perform a Save Action: it can reformat your code, remove unused imports, convert for loops to enhanced for loops etc.

Very useful indeed.

Fortyrunner