# Automatic Import Path Updates When Moving Files

**URL:** <https://forum.cursor.com/t/automatic-import-path-updates-when-moving-files/42549>\
**Category:** Help\
**Created:** [January 18, 2025, 10:14pm UTC](https://forum.cursor.com/t/automatic-import-path-updates-when-moving-files/42549 "2025-01-18T22:14:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryanatearth](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/ryanatearth/32/20808_2.png) [@ryanatearth](https://forum.cursor.com/u/ryanatearth)\
**Post date:** [January 18, 2025, 10:14pm UTC](https://forum.cursor.com/t/automatic-import-path-updates-when-moving-files/42549/1 "2025-01-18T22:14:01Z")

</div>

I noticed that when moving files (specifically CSS files in my case) to different directories, the import paths in other files don’t automatically update to reflect the new location. In VSCode, this is handled by the `javascript.updateImportsOnFileMove.enabled` setting.

Steps to reproduce:

1. Have a CSS file imported in a JavaScript/React project
2. Drag the CSS file to a different directory in the file explorer
3. The import paths remain unchanged in files that import this css file, requiring manual updates

Expected behavior:

- When moving a file, all imports referencing that file should automatically update to reflect the new path
- Alternatively, prompt the user to update imports when a file is moved

How do I enable this feature?

Is this feature planned for Cursor? It would be a great quality-of-life improvement for refactoring code.

Environment:

- Cursor Version: 0.43.6
- VSCode Version: 1.93.1
- OS: ubuntu ec2 instance via remote ssh
- Project type: React

---

<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:** [January 21, 2025, 7:01pm UTC](https://forum.cursor.com/t/automatic-import-path-updates-when-moving-files/42549/3 "2025-01-21T19:01:48Z")

</div>

Hey, it looks like that feature should be available in Cursor already.  
Can you check what value you have the setting set to right now?

 ![Screenshot 2025-01-21 at 19.01.18](https://us1.discourse-cdn.com/cursor1/original/3X/d/c/dcd91cb4ea695720913116b914550143c288e09c.png)

---

<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:25am UTC](https://forum.cursor.com/t/automatic-import-path-updates-when-moving-files/42549/4 "2026-06-18T10:25:07Z")

</div>

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


