Sublime Text 2 / Sublime Text 3 returns unsaved files to osx

In exalted knowledge, I know, even if you don’t save the changes to the file later, which you can start from where you left off. I opened a new tab in a sublime view and closed the application before saving the file. Sublime saves a temporary file somewhere in the computer (I use MAC OSx)

+11
sublimetext2 sublimetext sublimetext3 macos
source share
4 answers

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

The contents of these files are a large piece of JSON containing separate tabs. Find the file name / tab name / keyword in the document in the file and you can get what you need.


For Sublime Text 3, use the following path:

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

Credit: eebbesen

+26
source share

As far as I know, Sublime Text saves open files when you exit the application. However, if you close tabs or the project window without saving, the changes are lost.

In the first case, the files are saved in Local/Session.sublime-session (I use ST3, but can be different in ST2!) You can open the ST packages folder from the command palette using "Browse Packages".

+4
source share

I know this is a late answer, but here where I found it.

Linux : ~/.config/sublime-text-3/Local/Session.sublime_session

Windows : %USERPROFILE%\AppData\Roaming\Sublime Text 2\Settings\Session.sublime_session

Hope this helps someone.

+4
source share

For exalted text 3 ,

Windows : %USERPROFILE%\AppData\Roaming\Sublime Text 3\Local\Session.sublime_session

0
source share

All Articles