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

Sublime Text auto close tag not working

Open AmodeusR opened this issue 5 years ago • 6 comments

Ok, if I let the auto closing tag of VSC on, it just close tags as VSC would close, and I can do the </ thing but it's useless because it's already creating the close tag. If I turn off the auto closing tag, Sublime closing tag method doesn't work.

Am I missing something here or what?

AmodeusR avatar Dec 17 '19 19:12 AmodeusR

I am having the same issue, working with a javascript file in JSX

jandor64 avatar Jan 01 '20 01:01 jandor64

This is an issue I have as well. There doesn't seem to be a way to set only the SublimeText mode of completing closing tags without also having the auto-close feature turn on for the opening tag too.

So if I type <h1> in front of Hello World, I get <h1></h1>Hello World. This means I now have to delete the closing </h1> and then close it behind the Hello World.

In SublimeText, I can type the opening bracket <h1> in front of Hello World, then jump behind it and type </ to close it. No extra work created to delete unwanted closing tags.

jacobcassidy avatar Jan 16 '20 12:01 jacobcassidy

Same issue here, using VS Code 1.44.0 on Windows

tried: "html.autoClosingTags": true, "auto-close-tag.SublimeText3Mode": true

and

"html.autoClosingTags": false, "auto-close-tag.SublimeText3Mode": true

Neither work as expected

vscode-pmaher avatar Apr 12 '20 18:04 vscode-pmaher

Same issue, tried multiple variations and not able to use "only" sublime text mode. Any updates on the resolution would be great.

thecraigmcrae avatar Jul 16 '20 13:07 thecraigmcrae

any updates on a fix?

getmdiaz avatar Mar 05 '21 20:03 getmdiaz

@vscode-pmaher @thecraigmcrae Can you try: "auto-close-tag.SublimeText3Mode": true, "auto-close-tag.enableAutoCloseSelfClosingTag": true, Seems to work in my case: PHP-File with HTML-Tags (closing)

jstrobel avatar Apr 01 '21 09:04 jstrobel