Go to Definition in Rust

After several years of coding in modern IDEs (Visual Studio, Xcode, JetBrain), I got used to the invaluable Jump to definition function. This is especially valuable for system libraries and frameworks when you are still learning the basic functions of a new language.

Is there a way to achieve the same functionality for Rust in combination with any modern IDE or text editor? Any vim sublime text plugin?

+7
rust
source share
5 answers

IDE support for Rust does not yet exist. There is at least the Racer project, which, among other things, provides a transition to definition function.

Racer is designed to be integrated into any IDE / text editor and comes with emacs integration.

+2
source share

In Vim and emacs, you can use ctags to get a lot out of you; language definitions are in src/etc/ctags.rust , and you can create tags to distribute Rust with make TAGS.vi (or make TAGS.emacs for emacs format). See mk/ctags.mk .

To configure and use them in Vim see :help tags .

+2
source share

RustDT The IDE now supports Open Definition features using Racer .

+1
source share

There is a project called rusty-tags generating ctags for Rust. During this post, it is still actively supported.

+1
source share

Sublime RustAutoComplete has a working transition to definition using a separately installed Racer .
I use it and it works.

In 2014, the language is still moving, and the functionality of the Racer is still limited.
I currently have "auto_complete": false and only use manual completion (using the keyboard shortcut) to avoid Racer crashes.

0
source share

All Articles