# Unwanted changes copy pasting

**URL:** <https://forum.cursor.com/t/unwanted-changes-copy-pasting/45685>\
**Category:** Help\
**Created:** [January 28, 2025, 5:44pm UTC](https://forum.cursor.com/t/unwanted-changes-copy-pasting/45685 "2025-01-28T17:44:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bhackett1024](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/bhackett1024/32/22857_2.png) [@bhackett1024](https://forum.cursor.com/u/bhackett1024)\
**Post date:** [January 28, 2025, 5:44pm UTC](https://forum.cursor.com/t/unwanted-changes-copy-pasting/45685/1 "2025-01-28T17:44:04Z")

</div>

Copy pasting blocks of code between files auto updates imports and even modifies other files to export previously local definitions. This behavior isn’t helpful (the latter especially) and don’t see a pref to disable it or just get copy/paste working as expected.

---

<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:** [January 29, 2025, 4:43am UTC](https://forum.cursor.com/t/unwanted-changes-copy-pasting/45685/2 "2025-01-29T04:43:47Z")

</div>

Hey, which programming language are you using?

---

<div class="post-metadata">

**Author:** ![BohdanMoroz11](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/bohdanmoroz11/32/24236_2.png) [@BohdanMoroz11](https://forum.cursor.com/u/BohdanMoroz11)\
**Post date:** [February 4, 2025, 2:05pm UTC](https://forum.cursor.com/t/unwanted-changes-copy-pasting/45685/3 "2025-02-04T14:05:26Z")

</div>

+1 here. Very annoying feature. I’m using typescript

---

<div class="post-metadata">

**Author:** ![danperks](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/danperks/32/19087_2.png) [@danperks](https://forum.cursor.com/u/danperks)\
**Post date:** [February 6, 2025, 7:54pm UTC](https://forum.cursor.com/t/unwanted-changes-copy-pasting/45685/4 "2025-02-06T19:54:34Z")

</div>

Hey, is the setting `typescript.updateImportsOnFileMove.enabled` what you need, or a similar setting under the TypeScript section?

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [June 18, 2026, 10:27am UTC](https://forum.cursor.com/t/unwanted-changes-copy-pasting/45685/5 "2026-06-18T10:27:13Z")

</div>

Closed on June 18, 2026, 10:27am UTC


