DEV Community

Discussion on: VS Code: You don't need that extension

Collapse
 
kretaceous profile image
Abhijit Hota • Edited

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...

Collapse
 
paoloduzioni profile image
Paolo Duzioni

Hi there,

An alternative way could be 'Emmet: update tag' in the Command Palette.

And maybe assign a custom keyboard shortcut?

Collapse
 
robole profile image
Rob OLeary • Edited

You should be able to type "F2" on the opening tag and rename it, and it will do it for the closing tag also

Collapse
 
kretaceous profile image
Abhijit Hota

Thanks for the tip!
However it renames all the similar tags in the document instead of just the selected opening and closing tag.

Thread Thread
 
robole profile image
Rob OLeary

Doh! Hopefully they will fix the bug soon then 😄