mblode/vscode-twig-language-2

Auto closing tags not working with Twig

NicolasBarse opened this issue · 3 comments

I couldn't get the default setting "html.autoClosingTags": true to work with this extension. Is there a way to make it compatible with Twig? I think this feature is great and it's kind of breaking the workflow without it.

Use this settings, The original one is wrong, it breaks the html syntax.

    "files.associations": {
        "*.twig": "html"
    },
    "emmet.includeLanguages": {
        "twig": "html"
    },

@T1ckbase Well now you don't have any Twig syntax highlighting so why even use this package ?
This is not the solution

Unless it's added to the extension (which I guess is unlikely), your best bet is to use the Auto Close Tag extension and in the settings add Twig to its supported languages.

Auto Rename Tag is also good in combination with this.