Awesome
leptos-fmt
This extension automatically formats Rust files using leptosfmt
when you save them, specifically targeting files that contain the view!
macro and import statements for Leptos.
Features
- Automatic Formatting: Automatically runs
leptosfmt
on Rust files containing theview!
macro and the relevant Leptos import statements when saved. - User Notifications: Provides helpful notifications if
leptosfmt
is not installed or if any errors occur during formatting.
Demo
Requirements
-
Rust: Ensure you have Rust installed on your machine.
-
Leptosfmt: This extension requires
leptosfmt
. Install it using:cargo install leptosfmt