An overview about the state of Rust support by text editors and their integrated brethren.
Below you'll find a table listing the comparable features of editors, followed by specific information about single programs. The last part presents some more tooling of Rust's ecosystem.
Syntax highlighting (.rs)
Syntax highlighting (.toml)
|Show more editors ⇩|
|Show more IDEs ⇩|
✓ = supported out-of-the-box, ✓1 = supported via plugin
Important packages:ide-rust automatically prompts to install the nightly toolchain and then sets up everything else that's needed for code completion, API documentation lookup and so on.build-cargo(relying on atom-build)
Important packages: Rust-BBEdit
Important packages: rust-mode, flycheck-rust, emacs-racer, lsp-mode, rust-snippets,rustic
Micro is a modern and intuitive terminal-based text editor.
Important packages: mc-rust-lang
Specific highlights: Geany is one of the few editors with syntax highlighting out-of-the-box (since 1.24). It has built in scripts to run rustc, and even cargo support is coming soon™.
Important packages:GEdit-Rust-lang (syntax highlighting), gedit-config (also syntax highlighting), gracer
Specific highlights: Kate provides Rust and .toml syntax highlighting out of the box. Plus, there is also support for rls and through that autocompletion, linting, code formatting and go-to definition. Activate it with: Settings > Configure Kate > Plugins > LSP Client.
Important packages:ta-rust(unfortunately out of date),ta-toml
Specific highlights: Textadept is one of the few editors with syntax highlighting out-of-the-box (since 8.0). The module has built in scripts to run rustc with simple syntax checking and cargo support.
Sublime supports Rust out-of-the-box with syntax highlighting, snippets, build scripts, and its new definition system.
Important packages: TOML, Rust Enhanced, YouCompleteMe plugin, BeautifyRust
Important Neovim-only packages:
Important packages:Rust,CodeLLDB, Debug, Rust Test Lens, TOML Language Supportor Better Toml, crates
Corrosion is aRust-specific IDE built on Eclipse (scroll down to "Eclipse IDE for Rust Developers") andan Eclipse plugin.
With Corrosion you get:
Important packages:Visual Rust
With Visual Rust you get
The plugins bring Rust and TOML support to IDEA, CLion, PyCharm, and other JetBrains IDEs.
Language support includes syntax highlighting, completion, navigation, and other code insight features. You can work with Cargo commands and run Clippy or Rustfmt without leaving the IDE.
Debugger and profiler are available in CLion and IntelliJ IDEA Ultimate. CLion's integration also supports CPU profiling.. For all other IDEs, Debugging is possible using the Native Debuggingplugin.
ride is another IDE that is exclusively built for Rust. It is still in a very early state, and the author suggests not to use it productively.
But if you want to take a look behind the curtains, you can do so on YouTube where he shows recordings of him programming ride.
With GNOME Builder you get out of the box
Rustfmt can be used with help of beautifier.
Racer is a code completion tool for Rust that is developed standalone. It is the basis for code completion in pretty much every setup.
rustfmt is a code formatting tool which can easily be installed via
cargo install rustfmt
rusty-tags provides tags for ctags which can be used with all editors that support it.
TabNine uses deep learning to generate code completion suggestions. Plugins for several editors are available.