Great post, Rob!
Although the "Rename on Type" setting doesn't seem to work with JSX. 😕 Does anyone know any fixes?
Edit: Just found out it's an open issue! 😁 github.com/microsoft/vscode/issues...
Hi there,
An alternative way could be 'Emmet: update tag' in the Command Palette.
And maybe assign a custom keyboard shortcut?
You should be able to type "F2" on the opening tag and rename it, and it will do it for the closing tag also
Thanks for the tip! However it renames all the similar tags in the document instead of just the selected opening and closing tag.
Doh! Hopefully they will fix the bug soon then 😄
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Great post, Rob!
Although the "Rename on Type" setting doesn't seem to work with JSX. 😕
Does anyone know any fixes?
Edit: Just found out it's an open issue! 😁 github.com/microsoft/vscode/issues...
Hi there,
An alternative way could be 'Emmet: update tag' in the Command Palette.
And maybe assign a custom keyboard shortcut?
You should be able to type "F2" on the opening tag and rename it, and it will do it for the closing tag also
Thanks for the tip!
However it renames all the similar tags in the document instead of just the selected opening and closing tag.
Doh! Hopefully they will fix the bug soon then 😄