Format on Save should trigger during auto-save (afterDelay)

Feature request for product/service

Cursor IDE

Describe the request

When files.autoSave is set to “afterDelay”, editor.formatOnSave and editor.codeActionsOnSave never fire. The auto-save pre-empts any manual Cmd+S, so the save pipeline (formatting, ESLint fix) is silently skipped.

VS Code upstream added format-on-auto-save support in v1.97 (January 2025). It would be great if Cursor picked this up.

Expected: Prettier + ESLint fix-on-save run when a file is auto-saved.
Actual: They only run on an explicit Cmd+S, which is a no-op if auto-save already saved the file.

Workaround: Set files.autoSave to “onFocusChange” instead.

1 Like