formulahendry / vscode-auto-close-tag

Auto Close Tag for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=formulahendry.auto-close-tag
MIT License
179 stars 53 forks source link

HTML Auto Close Tag doesn't work #173

Open toci1980 opened 4 years ago

toci1980 commented 4 years ago

Hello, I have installed and enabled auto close tag in Microsoft Visual Studio (ver. 1.41) but it does not work. Any idea what is going on and how to fix it?

Thanks. Close Tags

bartimez commented 4 years ago

I am seeing the same issue. This has been working fine for me, but all of a sudden, this morning, auto-closing when </ is typed is no longer working.

I've also noticed this morning that when this extension is enabled, Code Helper process consumes 90%+ of CPU

miracbey commented 4 years ago

Merhaba, Microsoft Visual Studio'da (ver. 1.44.2) otomatik kapatma etiketini yükledim ve etkinleştirdim, ancak çalışmıyor. Neler olduğu ve nasıl düzeltileceği hakkında bir fikrin var mı?

Teşekkürler.

serkansahin55 commented 4 years ago

Little late, but in case someone has this issue in the future, I fixed the problem by changing the language of the file on the bottom right of VS code from Ruby to html. It changed it just for that file. Seemed to fix the problem.

VS code kullaniyorsaniz, sag alt tarafta kullanidiginiz program dilini degistiriniz. Ruby => Html .

getmdiaz commented 3 years ago

any updates on this? i have html selected as html on the bottom right and it actually is a html file aswell. but the Auto-close tag, sublime text3 mode is still not woring.

Susan-Wangari commented 3 years ago

I am experiencing the same problem here.I have HTML as the selected language and auto close installed but it still does not work and it was working before.

PedroBonorin0 commented 3 years ago

Little late but I fixed mine by accident. I changed the .html archive to .htm and it worked. Hope it works for you guys...

latere-a-latere commented 3 years ago

I experience this issue every now and then while working on blazor (aspnetcorerazor) documents. Setting the language to html and then back to aspnetcorerazor fixes it.

Lianalss commented 2 years ago

I'm a beginner and had the same problem (no Closing-tags, no Brackets-icons, no auto-html:5 option, and no right-clic-option to "Open with Live Server")

Solution: 1) Open your settings.json file on VSCode and include this line: "files.associations": {"*.html": "html"} (--thanks to Chidimo--) 2) Configure file association for ".html" and select HTML: clic on Language (blue bar bottom screen) for 'Select Language Mode' Then type: 'Configure file association for ".html' and select HTML. Restart VSC

My 4 problems are solved with this solution! (--thanks to Rick ;-) --)

AlexNodex commented 2 years ago

Same thing happens to me on random files, if you reload the VScode window then it starts to work again.

It only happens when the extension freaks out over a file / tag it can't close properly (for me it was a very complex file possibly with broken structure and lots of html tags)....

Hope this can get fixed, it's very annoying to have to reload the window all the time when it breaks!

Happy to post logs if anyone can tell me how!

janvaljean commented 1 year ago

Open your settings.json file on VSCode and include this line: "files.associations": {"*.html": "html"} (--thanks to Chidimo--)

fixed my problem