compulim / vscode-closetag

Quickly close last opened HTML/XML tag in Visual Studio Code
14 stars 5 forks source link

Detect document type and applies ignoreTags automatically #10

Open compulim opened 7 years ago

compulim commented 7 years ago

When the document is in HTML mode and in configuration "closeTag.ignoreTags" equals to "auto", it should automatically applies the HTML void tags.

Or think about a rule to applies different ignored tags based on document type.

evanwarner commented 7 years ago

I'm in agreement with @druellan's comment. This plugin is designed to close HTML tags, and I'd wager that's the functionality a huge majority of users are looking to get. But you can write HTML in a lot more than just .html files. Most of mine is in .twig files. I think "closeTag.ignoreTags" = "html" is the safest default that will make the most people happy out of the box.