Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

when coding ruby in sublime text 2, are their key commands for multi line commentS?

class Myclass
    include MyMethods
    def instance_method
        puts "hi from the instance method"
    def self.class_method
        puts "hi from class method"
    def Myclass.class_method1
        puts "hi from class method1"

share|improve this question

2 Answers 2

up vote 1 down vote accepted

You can type in your comments, use the MIDDLE CLICK & DRAG to select multiple cursors and then type your # to comment.

share|improve this answer
I also found this… it appears you can use CTRL + / – chrishough Mar 9 '12 at 0:18
I love ST2. I use it every single day. It truly is the crossplatform Textmate. – kobaltz Mar 9 '12 at 0:20
You can also CTRL + LEFT CLICK to place cursors in different locations. – kobaltz Mar 9 '12 at 0:21

Middle click didn't work for me.

Highlight the lines.
Choose Edit -> Comment -> Toggle Comment
or press CTRL /

Love Submline 2.

share|improve this answer
ctrl + / works like a charm!! thanks! – Francois Nov 8 '12 at 18:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.