Best IDE for newcomers


#1

Hello,

I am comming from Python World. One of the best things I found there is the IDE support.

In your opinion, which is the best Rust IDE for Windows today (for a noob) ?

Are there already any decent support for debugging ?

Cheers, Alfred N.


#2

I guess lots of people here use vim/emacs. But I would recommend VSCode, though I’ve not tried that.


#3

I use this.

It works very well and has active development.
I definitely recommend it if you can spare the RAM and CPU usage.


#4

As @chimmihc points out, intellij-rust is very powerful and IMO pretty approachable.

What IDE’s have you used before for Python? intellij-rust is built off of the same core IDE as PyCharm, so if you have used that before, you’ll feel right at home. But, if you’ve used another IDE before, there’s likely a Rust plugin already for that platform you may be more comfortable getting started with.


#5

I use VSCode now as my full time Rust IDE, with the Rust extension. This provides me a consistent IDE across 2 macOS environments and 1 Linux env.

You can also integrate https://github.com/rust-lang-nursery/rls for an even more feature rich experience. note this is not easy, yet


#6

Another option would be Atom with Tokamak (which acts as a kind of meta package + handling configuration, for syntax and build support) and the racer plugin for code completion, go to definition, etc.
Using all features requires you to have a local copy of the Rust source somewhere on your computer.

Integration of the language server though, would be a nicer option.


#7

Thank you all for the responses.


#8

I would recommend VSCode, the Rust plugin provides autocomplete, syntax highlighting, and some other nice features. But above all, there is a nice LLDB plugin that allows Visual Debugging which is an advantages over other IDEs I’ve tried.

And it’s cross platform.


#9

If you use rustup, you can use it to manage your local copy of the rustc sources:

rustup component add rust-src

If I remember correctly racer will find them automatically if you use that. But I’m really not sure.


#10

Yes, that’s correct. The component even tracks your current toolchain so it will always be up to date.
Unfortunately tokamak and the racer plugin both require you to specify a path. Otherwise they’ll look in /usr/share and not in ~/.multirust/ (where the component installs itself).

I think it shouldn’t be a problem to patch that in. Though the racer package seems abandoned.


#11

The extension RustyCode is obsolete.
Use the extension Rust.


#12
~$ cargo info racer

Crate:          racer
Version:        2.0.6
Description:    Code completion for Rust
Downloads:      86913
Homepage:       https://github.com/phildawes/racer
Documentation:  
Repository:     https://github.com/phildawes/racer
Last updated:   3 weeks ago
Version history:

  VERSION    RELEASED        DOWNLOADS  

  2.0.6      3 weeks ago     5565
  2.0.5      2 months ago    6190
  2.0.4      2 months ago    3429
  2.0.3      2 months ago    1056
  2.0.2      2 months ago    2995

  ... use -VV to show all 18 versions

Last update 3 weeks doesn’t look too much of abandoned to me…


#13

I was refering to the racer plugin of atom, not the tool itself—even the RLS relies on racer as far as I know, would be really bad if it were abandoned :wink:
The last commit for the plugin was sometime in 2016-04 with several open pull request and issues.


#14

Oh, I see. Right.