1 # Running Rustfmt from Atom
3 You'll need to install [Beautify](https://atom.io/packages/atom-beautify), you
4 can do this by running `apm install atom-beautify`.
6 There are 2 setting that need to be configured in the atom beautifier configuration.
8 - Install rustfmt as per the [readme](README.md).
9 - Open the atom beautifier settings
11 Go to Edit->Preferences. Click the packages on the left side and click on setting for atom-beautifier
13 - Set rustfmt as the beautifier
15 Find the setting labeled *Language Config - Rust - Default Beautifier* and make sure it is set to rustfmt as shown below. You can also set the beautifier to auto format on save here.
16 ![image](https://cloud.githubusercontent.com/assets/6623285/11147685/c8ade16c-8a3d-11e5-9da5-bd3d998d97f9.png)
18 - Set the path to your rustfmt location
20 Find the setting labeled *Rust - Rustfmt Path*. This setting is towards the bottom and you will need to scroll a bit. Set it to the path for your rustfmt executable.
21 ![image](https://cloud.githubusercontent.com/assets/6623285/11147718/f4d10224-8a3d-11e5-9f69-9e900cbe0278.png)