What's the best text editor for writing code, with Autosave and Versions?

Discussion in 'Mac Apps and Mac App Store' started by printz, Apr 7, 2013.

  1. printz macrumors regular

    Dec 23, 2012
    I'm looking for the best OS X text editor with syntax highlighting, overall good code-editing interface, script integration and so on that has Autosave and Versions. Textmate 2 and TextWrangler are free and indeed great, but both lack this feature. For now I'm using Smultron 5, which is decent, but there's still room for improvement (by comparing with Textmate 2's interface), and it's also sometimes buggy. Finally there's also Xcode 4 (with Autosave and Versions, even if unobvious), but I'm looking for something lighter. Being able to visit previous versions of the script file I'm editing is invaluable.
  2. CylonGlitch macrumors 68030


    Jul 7, 2009
    Have you thought about using a version control software package? Personally I use VIM with SVN. This way I can version control more than one thing and I can keep track of very version. One package to do everything almost always seems to be either too big or not complete. Using a version control package designed specifically for that purpose, and an editor for that purpose may be the best solution.
  3. printz thread starter macrumors regular

    Dec 23, 2012
    For large projects I use Git indeed (and ignore Xcode 4's Versions feature), but for simple script files that may be too much. And it's not "one package to do everything", it's a standard OS X feature.
  4. MathRulz macrumors regular

    Apr 15, 2011
    TextWrangler does Autosave as does its big brother BBEdit.

    BBEdit may be able to do what you are after in terms of versions according to the user manual.


    p. 153:

    "Compare Against Previous Version

    (Only on OS X 10.7 or later) Provides access to previous versions of the current document using the system’s built-in file versioning capability. You can compare and integrate changes from any prior version into the current document as desired."

    BBEdit also integrates with version control systems.

  5. Giuly macrumors 68040


    Isn't the XCode's Versions feature nothing other than fancy Git?
  6. printz thread starter macrumors regular

    Dec 23, 2012
    No. If you open the same file in something like TextEdit and select "Browse previous versions", you'll see the file history as it has been edited by Xcode. It's just that there's no "browse previous versions" feature in Xcode 4. And sure enough you don't have to save (even if the file icons appear "dirty").

    EDIT: nice about BBEdit having that feature. Kinda expensive but I may try the demo until I decide :) I wonder if TextWrangler has it after all…
  7. Giuly macrumors 68040


    I mean this:

Share This Page