7
3

More than 5 years have passed since last update.

IntelliJでRustのファイルを保存したときにrustfmtをかける

Posted at

rustfmtを入れる

# 最新のrustfmtはnightly版を要求する
rustup install nightly

rustup component add rustfmt-preview --toolchain nightly

nightly版を使う必然性はないけど、

For the latest and greatest rustfmt

とか言われると使いたくなる。

IntelliJの設定

File Watchers プラグインを入れ、↓の設定を追加する。

image.png

7
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
3