Editor 升华-如何在自动关闭时保存文件

Editor 升华-如何在自动关闭时保存文件,editor,text-editor,sublimetext2,Editor,Text Editor,Sublimetext2,如何配置Sublime 2以自动保存关闭的文件?它的行为应该类似于,用户打开文件、进行编辑、关闭文件,并且即使用户没有手动保存编辑过的文件,编辑也会自动保存 这是关闭,但我希望它保存在文件关闭,而不是失去重点 在焦点上保存丢失的文件您希望在仅关闭一个文件或关闭所有打开的文件(窗口)时神奇地保存文件吗?在第一种情况下,我建议将每个文件打开到SublimiteText2的不同窗口中 在第二个场景中,您正在寻找热退出:Preferences.sublime-settings // Exiting t

如何配置Sublime 2以自动保存关闭的文件?它的行为应该类似于,用户打开文件、进行编辑、关闭文件,并且即使用户没有手动保存编辑过的文件,编辑也会自动保存

这是关闭,但我希望它保存在文件关闭,而不是失去重点



在焦点上保存丢失的文件

您希望在仅关闭一个文件或关闭所有打开的文件(窗口)时神奇地保存文件吗?在第一种情况下,我建议将每个文件打开到SublimiteText2的不同窗口中

在第二个场景中,您正在寻找热退出:Preferences.sublime-settings

// Exiting the application with hot_exit enabled will cause it to close
// immediately without prompting. Unsaved modifications and open files will
// be preserved and restored when next starting.
//
// Closing a window with an associated project will also close the window
// without prompting, preserving unsaved changes in the workspace file
// alongside the project.
"hot_exit": true,

除了请记住_open_files您可以在退出时自动保存,并选择下次是否打开这些文件。

您希望在关闭一个文件或关闭所有打开的文件(窗口)时神奇地保存文件吗?在第一种情况下,我建议将每个文件打开到SublimiteText2的不同窗口中

在第二个场景中,您正在寻找热退出:Preferences.sublime-settings

// Exiting the application with hot_exit enabled will cause it to close
// immediately without prompting. Unsaved modifications and open files will
// be preserved and restored when next starting.
//
// Closing a window with an associated project will also close the window
// without prompting, preserving unsaved changes in the workspace file
// alongside the project.
"hot_exit": true,

除了记住打开文件您可以在退出时自动保存,并选择下次是否打开这些文件。

为什么您接受一个提示不会自动保存文件的答案?为什么您接受一个提示不会自动保存文件的答案?但将hot\u exit设置为true是最好的选择默认设置,不会更改任何内容。信息技术设置“hot_exit”:false,不会自动保存,会提示。而且,将memory_open_files设置为true或false对其提示的事实没有影响。因此,不是自动的。但是将hot_exit设置为true是默认值,不会改变任何内容。信息技术设置“hot_exit”:false,不会自动保存,会提示。而且,将memory_open_files设置为true或false对其提示的事实没有影响。所以,不是自动的。