The Eclipse IDE has a nice feature that automatically logs file revisions and you can view them anytime by right-clicking on a file and clicking on Compare With
Compare With
Some more updated options:
Every save is stored in a git repository. You can use existing git tools to look at the history:
autogit
This extension provides a custom local history viewer:
Local History for Visual Studio