33

I currently use emacs to edit .java files and run eclipse.

Eclipse doesn't automatically recognize modified files, so I often end up running unmodified application.

I wonder if there exists a shortcut to refresh all the modified files in eclipse.

eugene
  • 39,839
  • 68
  • 255
  • 489

2 Answers2

61

Perhaps you want to check Preferences > General > Workspaces > Refresh using native hooks or polling. You can see that the eclipse refreshes the file you edit with external editor (like vi, emacs, etc) when you check the option.

ntalbs
  • 28,700
  • 8
  • 66
  • 83
  • 3
    Window (on top in menu bar in Eclipse)->Preferences->General->Workspaces(click on Workspaces)->On right there is a check-box titled 'Refresh using native hooks or polling', checkmark it, click APPLY and OK. – ConfusedDeer Nov 05 '15 at 19:25
  • Also, I had to check the "Build automatically" option. – Victor Jul 04 '19 at 12:20
3

On the project explorer you need to select the project(s) that you want to refresh and then click on File->Refresh or hit F5.

Aditya K
  • 487
  • 3
  • 11