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 add space for {{ and {% #88

Open
mrleblanc101 opened this issue Dec 19, 2022 · 2 comments
Open

Auto add space for {{ and {% #88

mrleblanc101 opened this issue Dec 19, 2022 · 2 comments

Comments

@mrleblanc101
Copy link

I think this plugin should automatically add space between the opening and closing tag.
So {{ is expanded to {{}}, but should be expanded to {{ | }} (where | represent the cursor).
Same for {% expanded to {%%} instead of {% | %}.

@mrleblanc101
Copy link
Author

Space between the tags is the recommended style from the Twig website, but not mandatory.
So maybe this could be an option, but I don't know anyone who would disable this as it make the code harder to read.

@mrleblanc101
Copy link
Author

mrleblanc101 commented Dec 19, 2022

Volar just added a similar functionnality for .vue template.
vuejs/language-tools@88b0d98

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

1 participant