show-comment icon indicating copy to clipboard operation
show-comment copied to clipboard

RustRover 文件旁边显示的内容多 !

Open bcdax110 opened this issue 9 months ago • 0 comments

Rust中的写在文件开头(包级别)的注释有两种写法:

  • 行注释: //!
  • 块注释: /*! ... */ 插件目前会把Rust语法中固定的!也当作注释的内容

比如文件exmaple.rs的内容是:

//! 示例包注释

在Project视图中显示的是example.rs ! 示例包注释,而正确的显示方式应该是example.rs 示例包注释

bcdax110 avatar Apr 30 '24 12:04 bcdax110