Random whitespace for a set of files in git on reload of ide

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Extremely annoying issue where when i restart the ide, 50+ files get like newline diff whitespace changes. I thought it was git, but its not, this is cursor specifically, do not have an issue with this in vscode 1.107.0

Steps to Reproduce

Restart the ide, and check git chanegs

Screenshots / Screen Recordings

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.2.20 (Universal)
VSCode Version: 1.105.1
Commit: b3573281c4775bfc6bba466bf6563d3d498d1070
Date: 2025-12-12T06:29:26.017Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 25.1.0

Additional Information

This has been a problem since like 1.5 or around 2-3 months ago

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey @tejasPhaveri

To test out a theory here, can you configure this in your VSCode settings?

{
  "files.insertFinalNewline": false,
  "files.trimFinalNewlines": false,
  "files.trimTrailingWhitespace": false
}

And see if the behavior persists?

might be my project specifically actually, so far your suggestion has not added newlines when restarting ide

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.