Xcode Should Support Auto Save and Versions

Number:rdar://13271368 Date Originated:22 Feb 2013
Status:Duplicate/8849275 Resolved:
Product:Developer Tools Product Version:4.6
Classification:New Feature Reproducible:N/A
Since 10.7 OS X has support for Auto Save and Versions (http://support.apple.com/kb/HT4753). Xcode 4 doesn't support these tool that are invaluable to people writing much text, like developers. 

It happened to me yesterday that I accidentally reverted two files that I had been working on the entire day. That kind of thing can happen if it is late and you just want to finally commit your work to the SCM, but want to revert the modifications you made for testing.

I was saved by Time Machine in this instance because it had a version from half an hour ago. Still Xcode should support Auto Save and Versions - like any other good citizen on OS X - so that I can always go back to a specific auto-save.

Even better Xcode could integrate the auto-saves with the the version comparison tool allowing editing of the current version and copy/pasting code from older versions into the current one. The use case for this is that often I find myself going back several dozens of steps with Undo, copy something from the past, Redo back into the present and then insert the code.

So in summary Xcode should:

- files should be saved frequently and automatically as I manipulate them
- allow reverting back to earlier versions of files via Versions (Time Machine-like interface via File Menu)
- allow version comparison with local history in contrast to remote history coming from SCM

Other competing development environments like AppCode have this feature already, see the attached screen shot. 

Please, I love Xcode and I don't want to switch. But you'll get the fifth star only if you implement this. :-)


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!