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....) realize that the unexpected behaviour occurred because I forgot to save the changes
Is there any way I can make Eclipse save automatically?
You can do it with the saveDirtyEditor plugin as referenced in this question/answer. There is no non-plugin way of doing it.
You can go here and check the box Save automatically before build
Windows > Preferences > General -> Workspace