# Renaming a JS/TS file does not update imports across the project like VSCode

**URL:** <https://forum.cursor.com/t/renaming-a-js-ts-file-does-not-update-imports-across-the-project-like-vscode/24232>\
**Category:** Bug Reports\
**Created:** [October 22, 2024, 11:58pm UTC](https://forum.cursor.com/t/renaming-a-js-ts-file-does-not-update-imports-across-the-project-like-vscode/24232 "2024-10-22T23:58:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![x43n](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/x43n/32/9406_2.png) [@x43n](https://forum.cursor.com/u/x43n)\
**Post date:** [October 22, 2024, 11:58pm UTC](https://forum.cursor.com/t/renaming-a-js-ts-file-does-not-update-imports-across-the-project-like-vscode/24232/1 "2024-10-22T23:58:08Z")

</div>

In a typescript project (probably JS/node too) when you rename a file, it does not update the imports across all the project files like it does in VS Code. In Cursor, it has asked me once, but only applies it to open windows.

---

<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:** [October 23, 2024, 4:24am UTC](https://forum.cursor.com/t/renaming-a-js-ts-file-does-not-update-imports-across-the-project-like-vscode/24232/2 "2024-10-23T04:24:04Z")

</div>

Hi @x43n

Make sure you have the right settings enabled for this.

> **[TypeScript refactoring with Visual Studio Code](https://code.visualstudio.com/docs/typescript/typescript-refactoring#_update-imports-on-file-move)**
>
> Learn about TypeScript refactorings supported by Visual Studio Code.

 ![image](https://us1.discourse-cdn.com/cursor1/original/2X/6/65d0ffa86a580f15ccc05d607f33eca1f7cc6bf0.png)
