mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
17 lines
716 B
Markdown
17 lines
716 B
Markdown
|
# 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)
|