Discovering the Eclipse Local History Feature.
posted under category: CFEclipse on November 14, 2005 by Nathan
If you haven't seen the "local history" feature in Eclipse, try it out! There's really not much to explain, so follow along quickly:
- Find a file that you want to check the history on
- Right-click on it
- Find the "Compare With >" menu item
- Choose "Local History" on the menu
I told you it wasn't hard, and it's 3 steps too many for most of us, 4 for some.
From the Local History window, you can check the status of your file day by day, update by update, line by line like WinMerge. By default, Eclipse keeps the latest 50 changes to every file you modify over the past 7 days. These options are in the Eclipse prefs under General > Workspace > Local History.
This is another incredibly useful feature, if, say, you destroy a file before you check it into your version control, or worse, if you have no version control --yeesh, good luck fixing a file from a couple days back with dreamweaver.