Is there a way to stop Cursor AI from making "trivial" formatting changes?

I’m running into an annoying issue where Cursor AI keeps adding unnecessary formatting—like inserting random new lines at the end of a file—when a worked workspace is reopened.

To be clear:

  • I do want standard editor.formatOnSave enabled (it works perfectly in standard VS Code).
  • I do not want Cursor AI to “help” by making trivial, unrequested whitespace changes that dirty my git diffs.

For instance, sometimes I just open a workspace in the Cursor AI Editor without making any changes at all, and suddenly a bunch of trivial changes—like extra newlines—get added. This can even happen when there aren’t any real diffs to justify the changes.It feels like the AI engine is aggressively “tidying up” even when I
haven’t asked for an edit.

Is there a specific setting to toggle down this “AI auto-formatting” behavior while keeping standard editonSave formatter mechanims active?


And I really suspect that this is kind of a bug with worked workspace, but I’m not sure so I just put it here as a raw discussion.

again, I see this bug, when I just restart a workspace frm Cursor.

Hey there!

Thanks for a reporting. This is a known bug that we’re working on. Sorry about this :folded_hands: