Doc comments in vscode

Is there a setting in vscode that enables a more comfortable handling of doc comments (/// or //!)?
So that the comment continues on a new line and you move in the comment type and only break it with e.g. backspacing to delete the comment chars at the beginning of the line.
Or is there an additional extension which provides this?

Thx

On the assumption you're using rust-analyzer, type a space before hitting enter.

See the Rust analyzer User Manual

1 Like

Ah, yes setting the keybinding is some improvement.
Although I'm still missing that a copy&paste would work in the comment block over multiple lines. :smirk: