在退出之前如何让Sublime Text 2提示我?

时间:2012-09-10 20:51:54

标签: sublimetext2

有太多次我不小心点击了Sublime Text 2右上方窗口的X.然后我松开了我的撤销/重做历史。

编辑:我尝试在默认和用户设置中将hot_exit设置为false。

enter image description here enter image description here

2 个答案:

答案 0 :(得分:9)

在Preferences.sublime-settings

中查找 hot_exit
// 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,

并将其设置为false。

答案 1 :(得分:0)

安装插件本地历史记录。

  

每次修改文件时,都会保留旧内容的副本   当地的历史。

通过包控制(If you don't have it already, install it

进行

Or get it on Github