From 6c14dba4e9f66f234158a4bbee764417108fa765 Mon Sep 17 00:00:00 2001 From: Alex Butler Date: Tue, 29 May 2018 09:04:56 +0100 Subject: [PATCH] Add atom rls rustfmt usage guide --- atom.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/atom.md b/atom.md index d267a9b4ef83..6fbb9546bb45 100644 --- a/atom.md +++ b/atom.md @@ -1,6 +1,16 @@ # 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.