Does Ruby have block comments?
If not, is there an efficient way of inserting #
in front of a block of highlighted code in TextMate?
Does Ruby have block comments?
If not, is there an efficient way of inserting #
in front of a block of highlighted code in TextMate?
In TextMate, you can alt-drag vertically to select a column of text. This will duplicate the insertion point across all the lines you select, so you can insert or delete multiple #
s at once.
UPDATE: Also in TextMate, assuming you have the right language selected, Cmd + / will toggle commenting every line in a selection regardless of language.
You can do
=begin
and=end
must be at the beginning of the line (not indented at all).Source
Also, in TextMate you can press Command + / to toggle regular comments on a highlighted block of code.
Source