How can I insert Rdoc comments in RubyMine
Asked Answered
R

1

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?

Ramburt answered 12/12, 2012 at 23:30 Comment(0)
W
8

I have a similar problem, and the default alt enter way is not very good. You have to alt enter many times, and the generated type is always Object.

So I write a plugin to do this trick,

example

And I have uploaded the plugin to JetBrains (Plugin Repository), you can search ruby-doc-adder to download and use it.

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

Also see the readme for usages.

Wrennie answered 7/8, 2017 at 11:54 Comment(1)
Is this RubyMine plugin still being actively supported or developed? Plugin version 0.0.4 is not working in RubyMine v 2019.3Nook

© 2022 - 2024 — McMap. All rights reserved.