๐จ Rust Tip: Use cargo fmt to automatically format your code according to Rust style guidelines.
๐ You can even setup your editor to Auto-Format on save!
VS Code Instructions:
- Install the Rust Analyzer extension
- Open settings
- Search for "Format on Save" and enable the setting
Or you can add the following to your settings.json:
Link to ref: https://users.rust-lang.org/t/how-to-active-format-on-save-with-rust-analyzer-for-vs-code/41701



