]> git.lizzy.rs Git - rust.git/commitdiff
Document formatting capabilities
authorAleksander Vognild Burkow <aleksanderburkow@gmail.com>
Sat, 29 Dec 2018 20:55:07 +0000 (21:55 +0100)
committerAleksander Vognild Burkow <aleksanderburkow@gmail.com>
Sat, 29 Dec 2018 20:57:46 +0000 (21:57 +0100)
editors/README.md

index ad2ce16954f791ca4544c903ce916a25771e50e5..a63ced72559c65eca87cea7d783f9e9326c51207 100644 (file)
@@ -45,6 +45,8 @@ It's better to remove existing Rust plugins to avoid interference.
     `#[test]`, this action runs this specific test. If the cursor is
     outside of the test function, this re-runs the last test. Do bind
     this to a shortcut!
+  - **Format document**. Formats the current file with rustfmt.
+    Rustfmt must be installed separately with `rustup component add rustfmt`.
 
 * Typing assists
   - typing `let =` tries to smartly add `;` if `=` is followed by an existing expression.