ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Dashed Comments

This plugin inserts the comments block just before the current line with the same length by striping whitespaces.

Details

  • 2018.02.25.01.24.02
  • github.​com
  • github.​com
  • 7 years ago
  • 1 hour ago
  • 12 years ago

Installs

  • Total 1K
  • Win 569
  • Mac 369
  • Linux 142
Feb 4 Feb 3 Feb 2 Feb 1 Jan 31 Jan 30 Jan 29 Jan 28 Jan 27 Jan 26 Jan 25 Jan 24 Jan 23 Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

DashedComments for Sublime Text 2

This plugin inserts the comments block just before the current line with the same length by striping whitespaces. This is mainly used for ruby programmers.

Requirement

  • RubyFormat plugin to format your ruby code after inserting the comment block since it will strip the blank spaces which may have introduced by the indentation settings.

Installation

Package Control

Using Package Control, a package manager for Sublime Text 2.

In Sublime Text 2, press “win(cmd) + shift + p” and then type “install”.

Once you see “Package Control: Install Package”, enter.

When the packages load, another selection window will appear.

Type DashedComments and enter. All done!

Manual Installation

Open a terminal. change the path to Sublime Text 2 's packages folder. Then type the command like this:

cd "~/Library/Application Support/Sublime Text 2/Packages/"
  git clone git://github.com/email2vimalraj/DashedComments.git

Example:

#--------------------
# This is the comment
def comment_code

  #-----------------------------
  add_comment_block_on_top_of_me 
end

Useful

Key Binding

ctrl + alt + d on Windows
ctrl + alt + d on Linux
shift + cmd + d on Mac OS X

TODO List

  • Try to avoid the RubyFormat