RubyMine provides convenient features for creating documentation comments.
In this part:
- Documenting Source Code in RubyMine
- Enabling Creation of Documentation Comments
- Creating Documentation Comments
- Using Annotations
In languages files, RubyMine creates stubs of documentation comments on typing the opening tag and pressing EnterEnterEnterEnterEnterEnterEnterEnterEnterEnterEnterEnterEnter.
Documentation comments can be created in accordance with RDoc and YARD syntax. Note that RDoc highlighting in documentation comments can be turned enabled or disabled in the Appearance page of the editor settings.
When you create additional tags, RubyMine provides code completion that suggests the possible tag names.
Documentation comments in your source code are available for the Quick Documentation Lookup and open for review on pressing Ctrl+Q or Alt+Button2 ClickCtrl+Q or Alt+Button2 ClickCtrl+Q or Alt+Button2 ClickCtrl+Q or Alt+Button2 ClickCtrl+Q or Alt+Button2 ClickCtrl+QCtrl+Q or Alt+Button2 ClickAlt+Button2 Click, Ctrl+Shift+Space or F2Ctrl+Button2 Click or Ctrl+HF1, Control J or Control Button2 ClickControl J or Control Button2 ClickAlt Button2 Click or F2Control J or Control Button2 Click.