Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime Text 2 / Sublime Text 3 bring back unsaved files on osx

In sublime I know even if you don't save the changes in a file later one you can start from where you left off. I opened a new tab in sublime and closed the application before I save my file. Does sublime save a temp file somewhere in the computer (I am using MAC OSx)

like image 522
kousha Avatar asked Apr 24 '14 00:04

kousha


People also ask

Where does sublime store unsaved files Mac?

Sublime Text 2 stores the files in ~/Library/Application Support/Sublime Text 2/Settings , in the . sublime_session files that are located there. The contents of those files are a large JSON blob that contains the individual tab contents.

Where does sublime store unsaved files?

Sublime Text will save auto save information to ~/Library/Application Support/Sublime Text 2/Settings/Auto Save.

How recover deleted files sublime?

You can easily recover it from thrash / Recycle Bin folder on your machine. Sublime or any other third party software never delete files permanently, in case of windows, it catches deleted files and move it to Recycle Bin.

How do I save sublime text on Mac?

In Sublime Text's top menu bar, choose File > New File. An untitled, blank file will appear. Next, choose File > Save or Save As. It's crucial that you use the file extension .


1 Answers

Sublime Text 2 stores the files in ~/Library/Application Support/Sublime Text 2/Settings, in the .sublime_session files that are located there.

The contents of those files are a large JSON blob that contains the individual tab contents. Search in the file for the file name / tab name / a key word in the document and you should be able to get what you need.


For Sublime Text 3, use the following path:

~/Library/Application Support/Sublime Text 3/Local/Session.sublime_session 

Credit to: eebbesen

like image 159
mcw Avatar answered Sep 23 '22 19:09

mcw