# New files created with CRLF on Windows, ignoring all settings (LF)

**URL:** <https://forum.cursor.com/t/new-files-created-with-crlf-on-windows-ignoring-all-settings-lf/156286>\
**Category:** Bug Reports\
**Tags:** windows, chat\
**Created:** [March 31, 2026, 2:53am UTC](https://forum.cursor.com/t/new-files-created-with-crlf-on-windows-ignoring-all-settings-lf/156286 "2026-03-31T02:53:11Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [March 31, 2026, 5:18am UTC](https://forum.cursor.com/t/new-files-created-with-crlf-on-windows-ignoring-all-settings-lf/156286/5 "2026-03-31T05:18:36Z")

</div>

Hey, thanks for the detailed report and for gathering all the duplicates in one place.

This is a known bug. When creating new files on Windows, Cursor doesn’t respect `files.eol`, `.editorconfig`, or `.gitattributes`. Instead, it uses a heuristic based on existing files in the workspace or the OS default, which is CRLF on Windows. The team is aware, but there isn’t a specific ETA for a fix yet. Your report helps with prioritization since a lot of users have hit the same thing.

Unfortunately, there isn’t a good workaround specifically for creating new files. The only option is to manually change the line endings after the agent creates the file using the status bar in the bottom right. Click CRLF and switch it to LF.

Main thread to track: Cursor update changed line endings in entire codebase without consent

> [@Cursor update changed line endings in entire codebase without consent](https://forum.cursor.com/t/cursor-update-changed-line-endings-in-entire-codebase-without-consent/150566):
>
> Where does the bug appear (feature/product)? Cursor IDE Describe the Bug After updating Cursor, it automatically converted line endings (LF→CRLF) in a large legacy file (47,000+ lines), mixing legitimate code changes with line ending changes. This happened even with AI in “Ask Mode” (read-only). Steps to Reproduce When there is a popup for new version update, click the update button. Expected Behavior Cursor should preserve existing line endings by default Updates should not modify editor …

We’ll post an update there when there’s progress.

---

_[View the full topic](https://forum.cursor.com/t/new-files-created-with-crlf-on-windows-ignoring-all-settings-lf/156286)._
