Skip to content

Package for Sublime Text 3. Support for Yardoc in Ruby files.

License

Notifications You must be signed in to change notification settings

phts/SublimeYardoc

 
 

Repository files navigation

SublimeYardoc

Package for Sublime Text 3.

This is a fork of the original sublime-yardoc with some my improvements.

Install

Via Package Control:

  1. Open Command Palette → Package Control: Add Repositoryhttps://github.com/phts/SublimeYardoc
  2. Open Command Palette → Package Control: Install PackageSublimeYardoc

Usage

Pressing ctrl+enter on the line of the method definition

def hello a, b

end

results

#
# [hello description]
# @param a [type] [description]
# @param b [type] [description]
#
# @return [type] [description]
def hello a, b

end

Method yardoc

Pressing shift+alt+enter on the line of the class definition

class Hello

end

results

#
# [class description]
#
# @author
#
class Hello

end

Settings

// Determines if empty comment lines have a trailing space
"trailing_spaces": true,

// Add an initial empty line at the beginning of the comment
"initial_empty_line": true,

// Add an empty line at the end of the comment
"trailing_empty_line": false,

About

Package for Sublime Text 3. Support for Yardoc in Ruby files.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%