WrapToColumn icon indicating copy to clipboard operation
WrapToColumn copied to clipboard

[feature request] recognize //! used by top-level rustdoc comments

Open sunshowers opened this issue 4 years ago • 2 comments

Hi, thanks for writing this plugin! I use it everyday :)

I'm wondering if it can be extended to support the //! syntax used by rustdoc comments at the top level. Hopefully it should be pretty easy to add :)

sunshowers avatar Nov 27 '21 22:11 sunshowers

Now that Jetbrains has RustRover, this issue is more of a very frustrating defect than a feature. If I was a Kotlin developer, I would submit a patch. Any way we can grease the wheels to get this fixed?

Example input:

//! This is a long comment that needs to be wrapped. Please wrap this comment successfully in the near future.

Expected result:

//! This is a long comment that needs to be wrapped. Please wrap this comment
//! successfully in the near future.

Actual result:

//! This is a long comment that needs to be wrapped. Please wrap this comment
//successfully in the near future.

Thank you for the plugin and continued maintenance!

dimalinux avatar Oct 20 '24 03:10 dimalinux

Just hit this. Module level //! comments, which typically contain a lot of text, need this feature.

rnikander avatar Aug 19 '25 17:08 rnikander