tags:

views:

36

answers:

2

Hi,

I would like Eclipse to automatically save every time I edit a file, in much the same way that it builds automatically. Because I've been using IntelliJ for the last year (which saves automatically by default), I keep having the following problem:

  • Make some changes in Eclipse
  • Forget to press save
  • Run the build, unit tests, and notice some strange behaviour
  • (Some time later....) realise that the unexpected behaviour occurred because I forgot to save the changes

Is there any way I can make Eclipse save automatically?

Thanks, Don

+3  A: 

You can do it with the saveDirtyEditor plugin as referenced in this question/answer. There is no non-plugin way of doing it.

Nick Fortescue
+2  A: 

You can go here and check the box Save automatically before build

Windows > Preferences > General -> Workspace

GK