Eclipse save automatically

2019-03-10 11:44发布

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?

8条回答
贪生不怕死
2楼-- · 2019-03-10 12:46

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

查看更多
一纸荒年 Trace。
3楼-- · 2019-03-10 12:47

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

Windows > Preferences > General -> Workspace

查看更多
登录 后发表回答