mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
Merge pull request #591 from rust-lang-nursery/atom
Instructions for using Rustfmt from Atom.
This commit is contained in:
commit
c9120e9645
@ -26,6 +26,7 @@ multirust run nightly cargo install --git https://github.com/rust-lang-nursery/r
|
||||
|
||||
* [Vim](http://johannh.me/blog/rustfmt-vim.html)
|
||||
* [Emacs](https://github.com/fbergroth/emacs-rustfmt)
|
||||
* [Atom](atom.md).
|
||||
|
||||
|
||||
## How to build and test
|
||||
|
16
atom.md
Normal file
16
atom.md
Normal file
@ -0,0 +1,16 @@
|
||||
# Running Rustfmt from Atom
|
||||
|
||||
You'll need 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 config.
|
||||
|
||||
Install rustfmt as per the [readme](README.md). In atom beautifier, make sure
|
||||
rustfmt is the formatter:
|
||||
|
||||
![image](https://cloud.githubusercontent.com/assets/6623285/11109392/e4bd9542-8915-11e5-805b-a02664b1f502.png)
|
||||
|
||||
Also set the path to your rustfmt location in atom beautifier as shown below.
|
||||
(This setting is towards the bottom of the screen. Need to scroll):
|
||||
|
||||
![image](https://cloud.githubusercontent.com/assets/6623285/11109320/54a0117e-8915-11e5-94be-80b5e91072eb.png)
|
Loading…
Reference in New Issue
Block a user