X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=atom.md;h=f77ac1490721df68bd15cff8892517b24ae8aa85;hb=64bf8dfa33f1394fa317f2fa50580fcb13f458f9;hp=d267a9b4ef83a1ba6894077c9f13e5abdbd0baac;hpb=9bdcc0015f19ebc09c438d0c745f79fb2c0d96f0;p=rust.git diff --git a/atom.md b/atom.md index d267a9b4ef8..f77ac149072 100644 --- a/atom.md +++ b/atom.md @@ -1,9 +1,19 @@ # Running Rustfmt from Atom -You'll need to install [Beautify](https://atom.io/packages/atom-beautify), you +## RLS + +Rustfmt is included with the Rust Language Server, itself provided by [ide-rust](https://atom.io/packages/ide-rust). + +`apm install ide-rust` + +Once installed a file is formatted with `ctrl-shift-c` or `cmd-shift-c`, also available in context menu. + +## atom-beautify + +Another way is to install [Beautify](https://atom.io/packages/atom-beautify), you can do this by running `apm install atom-beautify`. -There are 2 setting that need to be configured in the atom beautifier configuration. +There are 2 settings that need to be configured in the atom beautifier configuration. - Install rustfmt as per the [readme](README.md). - Open the atom beautifier settings