Formatting in VSCode for templ + tailwindcss? #882
benrbowers
started this conversation in
General
Replies: 2 comments 3 replies
-
did you find anything ? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I would try out eslint with autofix enabled. There is a Eslint tailwindcss plugin and eslint is generally less opinionated than prettier. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The recommended way to format .templ files in VSCode is to install the the templ extension and then set the formatter for templ files to "a-h.templ".
It works great for general html, my only gripe with this formatter is that there is no way to integrate with tailwindcss.
Ideally, I would like the "reordering" of tailwind classes that is provided by the
prettier-plugin-tailwindcss
for prettier.Does anyone know if either:
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions