12

When I used Visual Studio I was used to inserting XML comments with just a few key presses at the beginning of the method definition (I think /// but it's been a while). Is there a way to insert an RDoc comment before a method inside of RubyMine out of the box? If so what is the keyboard shortcut?

4

1 回答 1

8

我也有类似的问题,默认的alt enter方式不是很好。您必须alt enter多次,并且生成的类型始终是Object.

所以我写了一个插件来做这个技巧,

例子

并且我已经将插件上传到JetBrains(Plugin Repository),大家可以搜索ruby-doc-adder下载使用。

https://plugins.jetbrains.com/plugin/9904-ruby-doc-adder

另请参阅自述文件以了解用法。

于 2017-08-07T11:54:41.460 回答