[rustfmt compatibility] Can we expect to auto-format code inside the view!
macro eventually?
#855
-
Coming from Svelte / React, the feature I miss the most in leptos is to auto-format the code inside the Syntax wise, the code inside the view is typically very tedious to format manually, due to its deeply nested nature. Back in the day when I switched from hand-formatting to auto-formatting TSX in React, it was pretty much a game changer: Huge DOM structure refactorings become so much faster, and I could fearlessly move entire TSX fragments out of (or into) a component, just press If I understand it correctly rustfmt cannot format macros like the I'm wondering if there is some hope that this limitation can be lifted or worked around somehow? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Check out |
Beta Was this translation helpful? Give feedback.
Check out
leptosfmt
, which is being built as part of/alongsideleptos-language-server
. At the moment there's a VS Code extension version of the language server but it's a standard LSP so can be used with other editors too.