Repro:
With latest Cursor and VS Code:
Install popular EditorConfig VS Code Extension
In a new folder, add file .editorconfig:
root = true
[*]
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
Save it
Then edit this file (or another file in this folder): change EOL to crlf, add some spaces to the end of any line, remove the newline at the end of file if it exists
Then save the file. As soon as the file is saved:
In VS Code: trailing whitespace (of each line) trimed, crlf converted to lf, and a newline inserted at the end of the file
In Cursor: trailing whitespace (of each line) trimed, crlf converted to lf, but newline not inserted at the end of the file
and EditorConfig extension’s output is normal:
.editorconfig: setEndOfLine(LF)
.editorconfig: editor.action.trimTrailingWhitespace
.editorconfig: editor.action.insertFinalNewLine
.editorconfig file saved.
Cursor 0.47.5
Windows 11