Eclipse Local History
I’ve been a big fan of Eclipse for quite while now and every now and again I find a new feature that gets me more excited about Eclipse just a bit more.
The other day when I was working on this project I noticed in the Team folder of the right-click (context) menu of a file, the Local History option. I’d actually seen this option many times before but I never took any notice of it. The other day however I decided to click on it. When I did a tab opened that showed me some sort of history of the file I had selected when I selected the option. It was, not to my surprise, a local history of the file. Every time I had saved my file, Eclipse has kept a previous copy of it. Local History turns out to be a super undo. Awesome!
Now, Local History is not like version control. Local History is much more low level than that. Basically, Local History is your version control between commits. Sort of.
After discovering Local History I decided to have another quick peek at the other menu options. After a bit of clicking around I noticed that when I right clicked a folder, the option Restore From Local History… appeared. And just like the title implied, you can actually bring back deleted files. Not only that, you can actually select which version from the Local History of that file you’d like to bring back.
All in all, again I’m pretty impressed with Eclipse. If you happen to know any cool Eclipse features, please let me know!