How to Disable the macOS ‘Ask to keep changes when closing documents’ Option

The Auto-Save Ecosystem

Modern macOS applications (like Pages, Numbers, Keynote, and TextEdit) utilize a robust Auto-Save and Versions system. When you create a new document and save it for the first time, macOS continuously saves your changes in the background as you type. Because the system is so reliable, when you click the red “X” to close a document, macOS simply assumes you want to keep everything you just did. It closes the window instantly, saving the final state without prompting you.

However, many users coming from a Windows environment, or those who frequently make experimental changes to a document that they might want to discard, find this automatic saving terrifying. If you open a template, accidentally delete half the text, and close the window, those destructive changes are saved permanently. If you want macOS to explicitly ask for your permission before saving changes upon closing, you must re-enable the traditional prompt.

How to Force the Save Prompt on Close

You can change this behavior in the general system settings.

  1. Click the Apple Logo in the top-left corner of the menu bar and select System Settings… (or System Preferences).
  2. In the left-hand sidebar, click on Desktop & Dock (In older macOS versions, this was located under the “General” preference pane).
  3. Scroll down through the various window management options.
  4. Look for the toggle switch (or checkbox) labelled Ask to keep changes when closing documents.
  5. Toggle the switch to the On position (or check the box).

From now on, whenever you modify an Auto-Save compatible document and attempt to close the window, a dialog box will appear asking if you want to “Revert Changes” or “Save.” This provides a crucial safety net for preventing accidental, permanent edits.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.