Quick start

Bold text denotes the names of actions you can type in the Find Action dialog (Ctrl+Shift+A or quickly press Shift twice for Find Anything). Shortcuts are given for the default Windows/Linux keymap. To learn shortcuts for your keymap consult Help > Keymap reference. Shortcut for an action is also displayed in the Find Action dialog.

Getting Rust and IntelliJ IDEA

You can use any JetBrains IDE to develop Rust. If you are not sure which one to choose, download IntelliJ IDEA community edition. Install the plugin via Settings > Plugins > Browse repositories menu.

It’s most convenient to use rustup.rs to install Rust. Using your operating system’s package manager will work as well, but you will need to download sources of the standard library manually.

Opening existing project

After you have installed the plugin into IntelliJ IDEA you can import a project from source:

idea-import

Select the directory with the project. The directory must contain a Cargo.toml file.

select-directory

Use from existing sources import.

from-sources

Check that the directory is recognized as a Rust project:

rust-source

Select a Rust toolchain. It’s OK if there is no rustup.

import-toolchain-step

Wait until Cargo downloads all project dependencies. Open any Rust file. You should see a suggestion to add the sources of the standard library:

download-stdlib

If you are using rustup, just click Download. Otherwise, download the archive with the source code from rust-lang.org, extract it and click Attach.

After your project is ready...

Check that the basic functionality is working. Try Goto Symbol Ctrl+Alt+Shift+N, Goto Declaration Ctrl+B and completion Ctrl+Space.