How to configure eclipse to autosave at startup?

I am looking for a configuration or plugin for eclipse that automatically saves files (so I do not need to use Ctrl + S). He could do this with a lost focus or for some period of time. I think I saw something like this (I know that he has IDEA), but I can not find it now.

+18
eclipse intellij-idea plugins autosave
Jul 17 '09 at 10:41
source share
5 answers

Update after seven years (Eclipse Neon 4.6)

Eclipse now automatically saves dirty editors

By default, autosave is disabled.
A new autosave preference page is available ( Preferences > General > Editors > Autosave ) and allows you to enable / disable autosave and change the autosave interval.
The countdown is reset when the keyboard is active, when the mouse is clicked, or when a pop-up window is displayed (e.g. content support, preference page, ...).

https://www.eclipse.org/eclipse/news/4.6/images/autosave -preference-page.png




Original answer (2009)

OP IAdapter added in the comments :

I put the plugin as I describe exists.

... and you are right!

The Eclipse plugin saveDirtyEditor should do what you need.
Copy SaveDirtyEditors_1.0.2.jar into your plugins directory.

In section

you will get a new preferences page
 General > Editors > Text Editors > Save Dirty Editors 

letting you save dirty files like " myfile.java " under " myfile.java.snapshot " every 30 seconds (maybe less if you want).




Without an additional plugin, however, Eclipse does not support this feature.

The closest may be:

 Window > Preferences > type "build" > General > Workspace > [x] Save automatically before build 

That way, every time you press CTRL + B to actually create your sources, they will be saved.
But I understand that this is not quite what you need.
Beware that your option will not be very effective if the "build automatically" option is activated ... (which will cause too many builds).

Again, not reaching exactly what you are looking for, you also have:

 Run/Debug > Launching > Save required dirty editors before launching Run/Debug > Launching > [x] Build (if required) before launching 



Note: the difference between IntelliJ IDEA and eclipse is the compile with save function:

As mentioned in the IDEA FAQ :

Q:
Can I enable compilation with persistence in IntelliJ IDEA?

IntelliJ IDEA does not currently support this feature.
However, there is an Eclipse-mode plugin that provides similar functionality, so we suggest you try this plugin.
Please note that by default, IntelliJ IDEA saves files for you, so you do not need to press the Ctrl + S key combination often, as you need to do in other IDEs.

However, with Eclipse, "build on save" is activated by default, hence the lack of this particular function.

+23
Jul 17 '09 at 10:51
source share

http://code.google.com/p/eclatosa/

"Saves all open editors in eclipse when the eclipse window is disabled (for example, IntelliJ)"

+15
Nov 29 '11 at 10:23
source share

No need to install an additional plugin.

Window β†’ Settings β†’ General β†’ Workspace and there you can check:

 Save automatically before build + Build automatically 

If this does not work, try this:

Settings β†’ Run / Debug β†’ Run β†’ Save dirty editors before launch

+1
Oct 10 '16 at 11:37
source share

I wrote a plugin for this a long time ago that still works: http://www.stateofflow.com/projects/71/save-me

Saves the editor when it loses focus. However, if you disconnect from the eclipse, he does not notice.

0
Aug 30 2018-11-21T00:
source share

This will be the best solution. Settings β†’ Run / Debug β†’ Launch β†’ Save dirty editors before launch

0
May 2 '19 at 11:23
source share



All Articles