mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-15 21:47:04 +00:00
Merge pull request #620 from sidred10/atom-instructions
Atom instructions
This commit is contained in:
commit
8d9c034a3f
@ -26,7 +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).
|
||||
* [Atom](atom.md)
|
||||
|
||||
|
||||
## How to build and test
|
||||
|
19
atom.md
19
atom.md
@ -3,14 +3,19 @@
|
||||
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.
|
||||
There are 2 setting that need to be configured in the atom beautifier configuration.
|
||||
|
||||
Install rustfmt as per the [readme](README.md). In atom beautifier, make sure
|
||||
rustfmt is the formatter:
|
||||
- Install rustfmt as per the [readme](README.md).
|
||||
- Open the atom beautifier settings
|
||||
|
||||

|
||||
Go to Edit->Preferences. Click the packages on the left side and click on setting for atom-beautifier
|
||||
|
||||
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):
|
||||
- Set rustfmt as the beautifier
|
||||
|
||||

|
||||
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.
|
||||

|
||||
|
||||
- Set the path to your rustfmt location
|
||||
|
||||
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.
|
||||

|
||||
|
Loading…
Reference in New Issue
Block a user