formulahendry / vscode-auto-rename-tag

Automatically rename paired HTML/XML tag
https://marketplace.visualstudio.com/items?itemName=formulahendry.auto-rename-tag
MIT License
259 stars 36 forks source link

doesn't always work well with EJS #568

Closed keenan137 closed 2 years ago

keenan137 commented 3 years ago

The h2 tag was p initially, when I renamed it I first removed the p (leaving "<>" and "</>"), and when I then placed

on the opening tag, it did not automatically update the closing tag. When I tried typing in the closing tag manually (

) it automatically added h2 in the EJS tag, the result is below:

SimonSiefke commented 3 years ago

I'm not quite sure what you mean. Could you wrap the code in your issue with triple backticks? For example

```html
<h1>hello world</h1>

gets rendered as

```html
<h1>hello world</h1>
Tom4sBeltr4n commented 2 years ago

He tried renaming a p tag to an h2 by backspacing the p and adding h2. The tag was then left blank, and when he tried updating the opening tag (<> -> <h2> )it didn't update on the closing tag. Solving this manually (adding </h2>) ended in a new opening tag being created. <h2></h2>