Comments generated by Comment with / action ( Ctrl+/ / Cmd+/ ) now follow Rustfmt style. You can change this behavior in File | Settings | Editor | Code Style | Rust | Code Generation . (by @SeekingMeaning)