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?

Jared
  • 1,450
  • 1
  • 13
  • 25

1 Answers1

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.

aristotll
  • 8,694
  • 6
  • 33
  • 53
  • 1
    Is this RubyMine plugin still being actively supported or developed? Plugin version 0.0.4 is not working in RubyMine v 2019.3 – Rick Gladwin Feb 20 '20 at 18:53