How to always get a line space between functions and similar? #5992
Unanswered
alanwilter
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Maybe Note Running with fn foo() {
println!("Hello");
}
fn main() {
println!("Hello Main!");
} Produces this output: fn foo() {
println!("Hello");
}
fn main() {
println!("Hello Main!");
} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm new to
rust
and I usevscode
. I found it nice it can keep the code mostly properly formatted.For example, if I put two space lines between the functions below, when saving, this is immediately rectified.
However, if remove the space line, the format accepts that but I don't like this!
How can I enforce always a space (one line space) between functions and similar?
Beta Was this translation helpful? Give feedback.
All reactions