I have this simple situation. I\'d like to refactor the name of the role variable:
It looks like Visual Studio Code is smart enough to know that \"roles\" in th
Use rename symbol instead of the standard find/replace. Rename is bound to F2 by default.
Rename symbol will know to only touch the local roles
references in your example. Visual Studio Code ships with rename support for JavaScript and TypeScript. Other languages may require installing a language extension.