I want to comment out a block of code in sublime text.
I see it in RailsCasts, but don't think he uses sublime text ... to do the following ...
if (uncommented) some uncommented example # if (commented) # some commented example code # end end
Is there a shortcut in sublime text that I can use to insert the block of #'s?
This question is tagged with
~ Asked on 2012-07-12 01:23:19
The shortcut to comment out or uncomment the selected text or current line:
Alternatively, use the menu:
Edit > Comment
For the block comment you may want to use:
~ Answered on 2012-07-12 01:29:19
You're looking for the
toggle_comment command. (Edit > Comment > Toggle Comment)
By default, this command is mapped to:
This command also takes a
block argument, which allows you to use block comments instead of single lines (e.g.
/* ... */ as opposed to
~ Answered on 2014-05-15 16:27:34