Is there a way to tell Eclipse to "Save all" before building?
Asked Answered
M

1

22

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

Maiduguri answered 26/1, 2009 at 18:45 Comment(4)
I'm not familiar with one, but is it that much of a hassle to hit the save-all combination first?Virtu
I thought it had to save all before a build anyways?Shotwell
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.Reena
I always have several files open, and inevitably I forget to save one of them (I'm just not in the habit of doing Ctrl+Shift+S)Maiduguri
D
32

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

Dulosis answered 26/1, 2009 at 19:3 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.