I am coding in javascript a very big file and I keep wanting to go back to a previous version because of bugs I have created in the new version. Are there any code editors that allow you to revert to a previous version of the code?
views:
45answers:
4I think what you need is not a specific editor. You need a version control system like Subversion or git. So you can still keep using your favourite editor.
Subversion (http://subversion.tigris.org/)
Git (http://git-scm.com/)
I very much agree with Prine's answer -- you're probably looking for version control, and many editors support it natively. However, if you're just looking for an editor that will show you changes you just made in the last few minutes, vim and emacs both have the concept of "undo trees" that let you visualize the undos and rewrites you've made in the course of a session:
Yes, both Emacs and Vim can do this:
http://www.emacswiki.org/emacs/RevisionControlSystem
http://www.vim.org/scripts/script.php?script_id=89
However, I agree with the other answers, a version control system would be more appropriate and easier to learn (assuming you don't already know Emacs or Vim).