When working in VSCode, there is a feature that allows you to modify variables called editor.action.rename
, typically activated by pressing F2.
However, when dealing with Typescript and Javascript, renaming an imported variable creates aliases. For example:
import { originalName } from 'my-package'
will become:
import { originalName as newName } from 'my-package'
Is there a way to avoid this behavior and make the changes apply to all references?