]> git.lizzy.rs Git - rust.git/commitdiff
Add atom rls rustfmt usage guide
authorAlex Butler <alexheretic@gmail.com>
Tue, 29 May 2018 08:04:56 +0000 (09:04 +0100)
committerAlex Butler <alexheretic@gmail.com>
Wed, 30 May 2018 08:31:20 +0000 (09:31 +0100)
atom.md

diff --git a/atom.md b/atom.md
index d267a9b4ef83a1ba6894077c9f13e5abdbd0baac..6fbb9546bb4589cf88d8c4327b66a14cc1fbf731 100644 (file)
--- 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.