Hi. I am looking for an extension (or a way) on Visual Studio Code that allows me to format code in a specific way.
For example typically people like to code in this style:
fn main() {
// Do stuff
}
However I prefer to code like this:
fn main()
{
// Do stuff
}
I would also like to add extra rules such as spacing.
For example if I am creating a structure:
struct Color
{
red: u32,
orange: u32,
}
I would like to create a rule or something that would format it like this:
struct Color
{
red: u32,
orange: u32,
}
notice how it is spaced out more nicely and evenly. I want something to automate it where it is all evened out.
Does anyone know of such extension(s)?