Providing intelligent code completion and "find definition" for Rust via Racer.
Preferences > Packages
, search for racer
, and install itapm install racer
).go to Preferences > Packages
, search for racer
, and click Settings
Display Name | Description | Required | Name |
---|---|---|---|
Path to the Racer executable | Full path (including executable) of Racer's binary (e.g. /Users/me/racer/bin/racer or c:\racer\bin\racer.exe ) |
YES |
racer.racerBinPath |
Path to the Rust source code directory | Should point to the rustc source directory (e.g. /Users/me/code/rust/src/ ) |
YES |
racer.rustSrcPath |
Autocomplete Scope Blacklist | Scopes for which no suggestions will be made (e.g. .source.go .comment ) |
NO |
racer.autocompleteBlacklist |
Show position for editor with definition | Can be Right or New . If Right is selected and your view is vertically split, the item will be open in the rightmost pane of the current active pane's row. |
NO |
racer.show |
Just type some code in a .rs
file, and racer will automatically show you some suggestions (using the autocomplete+ package provided by Atom).
You can also find definition
of your current element by pushing the F3
key.
Your configuration is probably wrong:
We use temporary files to communicate with racer and need to place them along with your source files.
We shaped them as ._racertmpXXXXX
because the ._*
files are ignored by default by Atom.
Change your configuration so that the tree-view
package follows Atom ignore rules!
Settings > Packages
tree-view
, click Settings
Hide Ignored Names
Note: by the way, you can control what is ignored in the main Atom settings top panel.
Settings > Settings
(the first tab)Ignored Names
field._*
, or add yourself a ._racertmp*
entry if you already changed the settings.We use temporary files to communicate with racer and need to place them along with your source files so that racer: