Cursor is unable to leave a blank line at the end of a file

If you ask agent to create a file, it’ll be unable (even if directly asked) to leave a blank line at the end.

You may test it with a prompt such as “Create a new file named “test”, and add the the line “Hello, world!” in it, with one blank/empty line at the end.”

This may clash with some user preferences, and some linters (such as prettier).

Irritating, but persistent problem with the edit model they are using. If you need that blank line, teach it to issue a shell command to append one.

Hey, why delegate this task to AI? There’s a built-in feature for this, and you can also use EditorConfig for it.

Didn’t know about that option, @deanrie !

That does it for me, thanks!