# Use native vscode api for renaming

**URL:** <https://forum.cursor.com/t/use-native-vscode-api-for-renaming/113286>\
**Category:** Feature Requests\
**Created:** [July 4, 2025, 7:11am UTC](https://forum.cursor.com/t/use-native-vscode-api-for-renaming/113286 "2025-07-04T07:11:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JesperHoff](https://avatars.discourse-cdn.com/v4/letter/j/ee59a6/32.png) [@JesperHoff](https://forum.cursor.com/u/JesperHoff)\
**Post date:** [July 4, 2025, 7:11am UTC](https://forum.cursor.com/t/use-native-vscode-api-for-renaming/113286/1 "2025-07-04T07:11:38Z")

</div>

When cursor renames a variable, it seems to only take apply to files in the context window.

It would be preferable to use VSCode’s underlying api when it renames variables as it seems to catch all references of the variable and not just the context window.
