Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse save automatically

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?

like image 816
Dónal Avatar asked Apr 14 '10 08:04

Dónal


People also ask

How do you save a program in Eclipse?

As you type in your program, occasionally select File->Save from the menu to save your work. You may enjoy the "content assist" feature of Eclipse. If you type a partial input and then hit CTRL+SPACE, a dialog shows all possible completions. Just pick the one you want from the list.

How do I turn on auto suggestions in Eclipse?

Step 1: Open your Eclipse or Spring Tool Suite, then go to the Window > Preferences as shown in the below image. Step 2: In the next screen go to the Java > Editor > Content Assist > Auto activation triggers for Java as shown in the below image.

How do I save a Workspace in Eclipse?

Save automatically To automatically save edited files before build, go to the Eclipse menu → (Windows →) Preferences → General → Workspace → Build. enable Save automatically before manual build.


1 Answers

Eclipse Neon (4.6)

Window > Preferences

Window Preferences

General > Editors > Autosave > check Enable autosave for dirty editors > choose the value for autosave interval (in seconds)

General Editors Autosave

Details in M7:

Auto-save of dirty editors is now available in Eclipse. The autosave option is disabled by default. A new autosave preference page (Preferences > General > Editors > Autosave) is available and allows to enable/disable the autosave and change the interval of autosave. The countdown is reset on keyboard activity, mouse click, or when a popup is displayed (e.g. content assist, preference page, ...).

like image 74
ROMANIA_engineer Avatar answered Oct 03 '22 09:10

ROMANIA_engineer