0
Answered

saving files unintentionally

MikeA 2 months ago updated by Alexander Blach (Developer) 2 months ago 1

Hi, I'm brand new to this editor to resurrect some old C coding from long time ago. (Just starting with it, but I like this editor very much too so far.) I'm finding here that if I accidentally type something into an old file I'm looking at,  and then close the window, it's saving what I typed!!! I want it to be asking to save, not automatically saving. For example here, I closed the window to discard anything I might have accidentally done to it. A global preference setting is needed to "ask to save".  I don't see anything in preferences for this right now. 

GOOD, I'M SATISFIED

Tried it out. It works. Thanks.

Satisfaction mark by MikeA 2 months ago
Answered

On macOS, you can actually change the behavior in system settings:

Go to System Settings -> Desktop & Dock and enable "Ask to keep changes when closing documents".

When you now close a file that you changed accidentally, you will be asked if you want to save your changes or revert the changes "to undo the changes since you last saved the document".