I'm looking for a configuration or plugin for eclipse that automatically saves files (so I don't have to use Ctrl+S). It could do it on lost focus or over some period of time. I think I saw something like that (I know IDEA has it), but I cant find it now.
相关问题
- Eclipse and Mylyn : how to disable grey files in t
- Installing Pydev for Eclipse throws error
- Error in Scala Compiler: java.lang.AssertionError:
- How to remove unused imports using Eclipse and not
- Assume/switch role in aws toolkit for eclipse 2.0
相关文章
- selenium+eclipse 打开网页时报错
- In IntelliJ IDEA, how can I create a key binding t
- Call non-static methods on custom Unity Android Pl
- IntelliJ IDEA can't open projects or add SDK o
- Eclipse failing to open
- Eclipse how can I indent C++ preprocessor macros
- Why is FindBugs ignoring my check for null?
- Eclipse cleanup - what are the “.index” files - ca
I wrote a plugin a long time ago to do this that still seems to work: http://www.stateofflow.com/projects/71/save-me
It saves the editor when it loses focus. However, if you switch away from eclipse it doesn't notice.
Update seven years later (Eclipse Neon 4.6)
Eclipse now has an Automatic Save of dirty editors
Original answer (2009)
The OP IAdapter added in the comments:
... and you are right!
Eclipse plugin saveDirtyEditor should do just what you need.
Copy the
SaveDirtyEditors_1.0.2.jar
in your plugin directory.You will get a new preference page under
, allowing you to save dirty files like '
myfile.java
' under 'myfile.java.snapshot
' every 30 seconds (can be less if you want).Without additional plugin, though, Eclipse does not support natively that feature.
The closest could be:
That way, each time you hit CTRL+B for actually building your sources, they would be saved.
But I realize this is not exactly what you are after.
Beware your option would not be very efficient with the "build automatically" option activated... (that would trigger too much builds)
Again, without achieving exactly what you are looking for, you also have:
Note: the difference between IntelliJ IDEA and eclipse is the "compile on save" feature:
As mentioned in the IDEA FAQ:
However, with Eclipse, the "build on save" is activated by default, hence the absence of that particular feature.
http://code.google.com/p/eclatosa/
"Saves all open editors in eclipse when deactivating the eclipse window (like in IntelliJ)"
No need to install more plugin.
Window -> Preferences -> General -> Workspace and there you can check:
If that doesn't work try this:
Preferences -> Run/Debug -> Launching -> Save dirty editors before launching