Eclipse Tool Tip #2: Local History

Yet another reason to love Eclipse is its Local History feature. Yeah, you might have a version control system but what happens if your recent changes are accidentally wiped out before you commit them to CVS, Perforce, or whatever else you use? If you are using Eclipse, you compare your current source file against locally saved changes. To see this in action, from the Package Explorer right click on a source file you have recently modified. Click on Compare With > Local History to open the Compare with Local History tool. You can diff between your current source and a previously saved file from your local history file. This Eclipse feature has saved me many a time, hopefully you also find it useful.

Leave a Reply