# File too long. File or query is too long. Currently, the /edit command is limited to files at most around 400 lines long. If your file is shorter, it may be that some individual lines are too long

**URL:** <https://forum.cursor.com/t/file-too-long-file-or-query-is-too-long-currently-the-edit-command-is-limited-to-files-at-most-around-400-lines-long-if-your-file-is-shorter-it-may-be-that-some-individual-lines-are-too-long/6844>\
**Category:** Feature Requests\
**Created:** [July 29, 2024, 4:31pm UTC](https://forum.cursor.com/t/file-too-long-file-or-query-is-too-long-currently-the-edit-command-is-limited-to-files-at-most-around-400-lines-long-if-your-file-is-shorter-it-may-be-that-some-individual-lines-are-too-long/6844 "2024-07-29T16:31:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leo](https://avatars.discourse-cdn.com/v4/letter/l/c2a13f/32.png) [@Leo](https://forum.cursor.com/u/Leo)\
**Post date:** [July 29, 2024, 4:31pm UTC](https://forum.cursor.com/t/file-too-long-file-or-query-is-too-long-currently-the-edit-command-is-limited-to-files-at-most-around-400-lines-long-if-your-file-is-shorter-it-may-be-that-some-individual-lines-are-too-long/6844/1 "2024-07-29T16:31:28Z")

</div>

Can we please have a Chat token limit extension? I work with very large files that “some up to 10k+ lines” It would be very useful to have no limits with how many lines the chat can read/apply changes.

---

<div class="post-metadata">

**Author:** ![ryangray](https://avatars.discourse-cdn.com/v4/letter/r/7feea3/32.png) [@ryangray](https://forum.cursor.com/u/ryangray)\
**Post date:** [October 9, 2024, 11:59pm UTC](https://forum.cursor.com/t/file-too-long-file-or-query-is-too-long-currently-the-edit-command-is-limited-to-files-at-most-around-400-lines-long-if-your-file-is-shorter-it-may-be-that-some-individual-lines-are-too-long/6844/2 "2024-10-09T23:59:16Z")

</div>

If you are having trouble with long path file simply use LongPathTool

---

<div class="post-metadata">

**Author:** ![condor](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/condor/32/73148_2.png) [@condor](https://forum.cursor.com/u/condor)\
**Post date:** [February 28, 2026, 6:38pm UTC](https://forum.cursor.com/t/file-too-long-file-or-query-is-too-long-currently-the-edit-command-is-limited-to-files-at-most-around-400-lines-long-if-your-file-is-shorter-it-may-be-that-some-individual-lines-are-too-long/6844/5 "2026-02-28T18:38:49Z")

</div>

Closed on February 28, 2026, 6:38pm UTC


