

I like to use watch tasks to continuously run my tests.
#Download open in terminal for jetbrain code
When I'm writing code - I hate having to flip to the terminal to compile and run the tests and ensure it's all good.
#Download open in terminal for jetbrain install
rustup run nightly cargo install clippy.The only difference between clippy and Rust's clippy is that Rust's clippy is actually useful. It will make suggestions about improvements to be made to your code. (Optional) Rebind the default ctrl+shift+s shortcut to ctrl+s for more convenienceĬlippy is.If you use the VIM emulator, :wa will not trigger the reformatting - you must use the save shortcut.You want to activate save actions on shortcut - IntelliJ does a lot of autosaving which will result in your code being reformated while you are still typing it if you use activate on save.Install the "Save Actions" plugin in IntelliJ.If you want your environment to do more, here are some of the tools I use to improve the work flow in Rust and IntelliJ. With code completion, code generation, syntax highlighting, suggestions and a test runner. There you are - you now have a functional Rust environment. This may not get rid of the warning - the plugin should still be working as expected though.try to attach it to the cargo.toml in your project root directory by following the promps in the notifications panel.IntelliJ may complain about not finding a cargo project.keep an eye on the notifications panel at the top of the editor window.open project in IntelliJ by opening the project directory.install "Rust" plugin from the IntelliJ plugin repositories.cd to parent directory you want for your project.remember to set up your current shell (instructions at end of installation), if it doesn't work, just reboot your machine.follow instructions for default installation.this will give you cargo, rustc, rustup etc.invent the universe, followed by computers and the internet.As you might expect, the refactoring tools are not as fully featured as those for Java - but they're there and nobody else has them.

IntelliJ has one important feature that none of these have. The classics are perhaps CLion and vim/emacs. There are lots of good options for Rust development. This post is a part of the upcoming codurance series on different ways of setting up your Rust development environment.
