I am looking for text editor which can reopen all my saved/unsaved tabs that was there in the last session before my mac got restarted or text editor got closed unexpectedly.

I always have my text editor open in any of my desktops in mac but if for some reason I need to reboot or text editor gets closed unexpectedly, then if I restart my mac or reopen text editor then it should bring back all windows that was opened in last session whether saved or unsaved.

I tried with Sublime but looks like it didn't work for me. Any thoughts?

1 Answer 1


TextEdit, which is part of every version of MacOS, does exactly that, if you check this box when shutting down or logging out.

enter image description here

The downside is trying to discipline yourself to put things away once in a while. At this moment, I literally¹ have three dozen "Untitled" text windows in my Dock.

¹The pre-2000 meaning of "literally"

  • RE: "At this moment, I literally¹ have three dozen "Untitled" text windows in my Dock" -- Did you know that you can have an app's windows minimized into the application's icon on the Dock? -- System Preferences > Dock > [√] Minimize windows into application icon Apr 26, 2020 at 5:09
  • Yes. I also suspect that it makes them harder to find.
    – WGroleau
    Apr 26, 2020 at 5:12
  • Not really as you have the list on the Window menu or the list on the Dock tile with a right-click. Apr 26, 2020 at 6:10
  • I've never fully tested this, but I have a feeling that System Prefs>General> 'Ask to keep changes when closing documents' & 'Close windows when quitting an app' may need to be unchecked too.
    – Tetsujin
    Apr 26, 2020 at 7:22
  • I have seen the “list on the dock tile” and I don’t think it would be practical with more than three dozen items. Plus, when they’re somewhat hidden, there’s even less motivation to clean up.
    – WGroleau
    Apr 26, 2020 at 18:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .