vscode-auto-close-tag icon indicating copy to clipboard operation
vscode-auto-close-tag copied to clipboard

Remove closing tag on close opening tag

Open ghost opened this issue 6 years ago • 3 comments

If I close the opening tag the closing tag should be removed

Example:

<button></button>

Result:

<button/>></button>

Expected:

<button/>

ghost avatar Apr 23 '18 13:04 ghost

Type >, then remove </button>? I am not quite understanding this behavior...

formulahendry avatar Apr 27 '18 09:04 formulahendry

This has caught me out many times too. Basically what happens is, even if you delete </button> and you are left with <button>, adding the / inside will result in <button />>.

alexmccabe avatar May 30 '18 14:05 alexmccabe

We are also facing this issue. When typing in "<", there will be "<|>" automatically. Then it would be "<input|>" when typing some content. But when user want to close it and type "/", it becomes "|>", which should be "|".

string1225 avatar Jan 02 '19 05:01 string1225