-
Hi, just experimenting with my first component and in VSCode the attributes get formatted all onto one line (btw my output: pub fn Button(props: ButtonProps) -> Element {
rsx! {
button { padding: "0.5rem", margin: "0.5rem", position: "relative", color: "red", title: props.title, {props.children} }
}
} desired: pub fn Button(props: ButtonProps) -> Element {
rsx! {
button {
padding: "0.5rem",
margin: "0.5rem",
position: "relative",
color: "red",
title: props.title,
{props.children}
}
}
} |
Beta Was this translation helpful? Give feedback.
Answered by
ealmloff
Mar 19, 2024
Replies: 1 comment
-
It is not possible to change the default settings in the dioxus formatter currently. #1492 is a tracking issue for making |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sekoyo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is not possible to change the default settings in the dioxus formatter currently. #1492 is a tracking issue for making
dx fmt
respect settings for rustfmt