sublime 2 rails multi line comments key command

2

1

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"
        show_inspect
    end
    def self.class_method
        puts "hi from class method"
        show_inspect
    end     
    def Myclass.class_method1
        puts "hi from class method1"
        show_inspect
    end 

end

Chris Hough

Posted 2012-03-09T00:00:43.457

Reputation: 154

Answers

1

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

kobaltz

Posted 2012-03-09T00:00:43.457

Reputation: 14 361

I also found this http://www.pierotoffanin.com/2012/01/sublime-text-2-if-you-havent-tried-it-yet-youre-missing-out/ it appears you can use CTRL + /

– Chris Hough – 2012-03-09T00:18:43.943

1I love ST2. I use it every single day. It truly is the crossplatform Textmate. – kobaltz – 2012-03-09T00:20:41.527

You can also CTRL + LEFT CLICK to place cursors in different locations. – kobaltz – 2012-03-09T00:21:53.773

2

Middle click didn't work for me.

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

Love Submline 2.

B Seven

Posted 2012-03-09T00:00:43.457

Reputation: 370

cmd + / works for me – AITAALI_ABDERRAHMANE – 2016-04-04T00:01:45.583

ctrl + / works like a charm!! thanks! – Francois – 2012-11-08T18:58:31.413