Sublime Text 2/Sublime Text 3在osx上带回未保存的文件 [英] Sublime Text 2 / Sublime Text 3 bring back unsaved files on osx
问题描述
在崇高的氛围中,我知道即使您以后不将更改保存到文件中,也可以从上次中断的地方开始.在保存文件之前,我在sublime中打开了一个新标签,并关闭了该应用程序.升华是否将临时文件保存在计算机中的某个位置(我正在使用MAC 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)
推荐答案
Sublime Text 2将文件存储在~/Library/Application Support/Sublime Text 2/Settings
中的.sublime_session
文件中.
Sublime Text 2 stores the files in ~/Library/Application Support/Sublime Text 2/Settings
, in the .sublime_session
files that are located there.
这些文件的内容是一个大的JSON Blob,其中包含各个选项卡的内容.在文件中搜索文件名/选项卡名/文档中的关键字,您应该就能得到所需的内容.
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.
对于Sublime Text 3,请使用以下路径:
For Sublime Text 3, use the following path:
~/Library/Application Support/Sublime Text 3/Local/Session.sublime_session
信用至: eebbesen
这篇关于Sublime Text 2/Sublime Text 3在osx上带回未保存的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!