Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto closing tags not working with Twig #97

Open
NicolasBarse opened this issue Mar 24, 2023 · 3 comments
Open

Auto closing tags not working with Twig #97

NicolasBarse opened this issue Mar 24, 2023 · 3 comments

Comments

@NicolasBarse
Copy link

NicolasBarse commented Mar 24, 2023

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.

@T1ckbase
Copy link

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

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

@mrleblanc101
Copy link

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

@RyanRoberts
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants