Sublime Forum

Ask to save files on exit sublime

#1

Hi

How can i configure the Sublime 3 to ask if i want to save the files (that i have change) on exit?

Thanks

0 Likes

#2

Open the setting, search for “save”, copy the setting to user settings and change the setting there (that way your settings are from overwriting on ST updates).

  • open Preferences > Settings - Default
  • search for “save” till you find

[quote] // 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.
[size=150]“hot_exit”: true[/size],[/quote]

  • copy that block
  • open Preferences > Settings - User
  • paste in
  • change the “true” to “false”

Done.

0 Likes

#3

Error on save :frowning:

i59.tinypic.com/9ztzl5.png

using only this:

“hot_exit”: false,

0 Likes

#4

I am not allowed to see your pic for company restrictions.

But I am guessing your are in trouble with the trailing commas?
Search for JSON syntax rules,… or just take a closer look and find out yourself.

Hint: every command block/line is delimited by a comma.

If not that, mention your environment could help.
Maybe you are on Vista/Win7 and have installed into a protected folder like “Program Files”?

.

0 Likes