문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top