Skip to content

Commit

Permalink
add example gif
Browse files Browse the repository at this point in the history
  • Loading branch information
aristotll committed Aug 7, 2017
1 parent 2cfb7ee commit 0b1da11
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 9 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# README
---

Add document comments to Ruby functions in Intellij or RubyMine
Add document comments to Ruby functions in Intellij or RubyMine.

see https://www.jetbrains.com/help/ruby/documenting-source-code-in-rubymine.html for more info.

---


Move cursor to the element, and press the shortcut to add the Ruby doc comments.
Move cursor to the function name, and press the shortcut to add the Ruby doc comments.

Shortcuts:

Expand All @@ -18,6 +18,7 @@ Shortcuts:

---

![Example:][https://raw.githubusercontent.com/aristotll/RubyDocAdder/master/rdoc-adder.gif]

---

Expand All @@ -31,9 +32,9 @@ end
After
```
# @param [Object] test
# @param [Object] num
# @param [Object] several_variants
# @param [Object] new
# @param [Fixnum] num
# @param [Array] several_variants
# @param [Hash] new
# @return [String]
def encode!(test, num = 1, *several_variants, **new)
''
Expand Down
27 changes: 23 additions & 4 deletions resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
@@ -1,19 +1,38 @@
<idea-plugin>
<id>me.aristotll.ruby.rdoc.adder</id>
<name>ruby-doc-adder</name>
<version>0.01</version>
<version>0.02</version>
<vendor email="[email protected]">aristotll</vendor>
<description><![CDATA[
<p>Add document comments to Ruby functions in Intellij or RubyMine</p>
<p>Add document comments to Ruby functions in Intellij or RubyMine.</p>
<p>see <a href="https://www.jetbrains.com/help/ruby/documenting-source-code-in-rubymine.html">https://www.jetbrains.com/help/ruby/documenting-source-code-in-rubymine.html</a> for more info.</p>
<div class="hr"null>&nbsp;</div>
<p>Move cursor to the element, and press the shortcut to add the Ruby doc comments.</p>
<p>Move cursor to the function name, and press the shortcut to add the Ruby doc comments.</p>
<p>Shortcuts:</p>
<ul>
<li><code>ctrl + shift + P</code> in Windows and Linux</li>
<li><code>⌘ + ⇧ + P</code> (command shift P) in Mac os</li>
</ul>
]]></description>
<div class="hr"null>&nbsp;</div>
<p><img src="https://raw.githubusercontent.com/aristotll/rubydocadder/master/rdoc-adder.gif" alt="Example:" /></p>
<div class="hr"null>&nbsp;</div>
<p>Before</p>
<pre><code class="ruby">def encode!(test, num = 1, *several_variants, **new)
''
end
</code></pre>
<p>After</p>
<pre><code># @param [Object] test
# @param [Fixnum] num
# @param [Array] several_variants
# @param [Hash] new
# @return [String]
def encode!(test, num = 1, *several_variants, **new)
''
end
</code></pre>
</div> ]]></description>

<change-notes><![CDATA[
first release ]]>
Expand Down

0 comments on commit 0b1da11

Please sign in to comment.