Sublime Text 2 在哪里存储编辑信息? [英] Where does Sublime Text 2 store editing information?
问题描述
当我执行这些步骤时:
- 在 Sublime Text 2 中打开现有文件.
- 在文件中的任意位置输入任意文本.
- 关闭 Sublime Text 2.
注意,我没有保存更改.
Note, I have not saved the changes.
- 打开 Sublime Text 2.
- 打开第 1 步中的文件.
我看到文件有变化.但是如果我在记事本中查看文件,我看不到任何变化.
I see changes in the file. But if I view the file in, let's say, Notepad, I see no changes.
Sublime Text 2 在哪里保存对文件所做的更改?
Where does Sublime Text 2 keep the changes made to files?
推荐答案
就我而言,这个问题还没有完全回答......
As far as I'm concerned the question isn't answered completely...
正如 nnnn 解释的那样,项目未保存的更改保存在其 sublime-workspace 文件中.
As nnnn explained, the unsaved changes of a project are saved in its sublime-workspace file.
但是如果你还没有创建一个项目并且你只是在处理一些文件,sublime 也会记住未保存的更改.这些保存在Session.sublime_session"中.
But if you haven't created a project and you are just working on some files, sublime also does remember the unsaved changes. These were saved in 'Session.sublime_session'.
在哪里可以找到会话,取决于您的操作系统:
Where the session can be found, depends on your operating system:
- OS X:
~/Library/Application Support/Sublime Text 2/Settings/
- Windows:
%APPDATA%\Sublime Text 2\Settings\
- Linux:
~/.config/sublime-text-2/Settings/
(我只是在 官方崇高论坛)
这篇关于Sublime Text 2 在哪里存储编辑信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!