You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I rename a state variable during a refactor, I hate that I have to then change it everywhere in the template too. I wish vscode would automatically rename it for me everywhere, reliably.
Proposed solution
VS Code recently started promoting the editor.linkedEditing feature, which enables automatic renaming of closing tags in HTML when you rename the opening tag. For instance, when renaming a <div> tag to <section>, the corresponding closing </div> tag is automatically updated to </section>, with a visual indicator (like the red background in the image) showing that the two parts of the code are linked.
Could a similar approach be applied to renaming variables, components, etc.?
I think this could be an amazing dev-ex and productivity improvement.
Alternatives
not and require people to keep using cntrl+f and replace all
Additional Information, eg. Screenshots
No response
The text was updated successfully, but these errors were encountered:
UltraCakeBakery
changed the title
Use new editor.linkedEditing for auto renaming variables in template
Use new editor.linkedEditing for auto renaming references in template
Jan 16, 2025
UltraCakeBakery
changed the title
Use new editor.linkedEditing for auto renaming references in template
Use editor.linkedEditing for auto renaming references in template
Jan 16, 2025
Description
When I rename a state variable during a refactor, I hate that I have to then change it everywhere in the template too. I wish vscode would automatically rename it for me everywhere, reliably.
Proposed solution
VS Code recently started promoting the
editor.linkedEditing
feature, which enables automatic renaming of closing tags in HTML when you rename the opening tag. For instance, when renaming a<div>
tag to<section>
, the corresponding closing</div>
tag is automatically updated to</section>
, with a visual indicator (like the red background in the image) showing that the two parts of the code are linked.Could a similar approach be applied to renaming variables, components, etc.?
I think this could be an amazing dev-ex and productivity improvement.
Alternatives
not and require people to keep using
cntrl+f
andreplace all
Additional Information, eg. Screenshots
No response
The text was updated successfully, but these errors were encountered: