Home Download Buy Blog Forum Support

commenting out code blocks

commenting out code blocks

Postby johntdyer on Sun Jan 29, 2012 4:41 pm

TextMate had a nice feature whereas I could select blocks of code and comment them out, it appeared to have contextual knowledge on the type of code since it would apply the correct sytax, eg <!-- --> for xml/html, and # for Ruby. Does Sublime2 have this ? If so how can I get it to work ?

Thanks!

-John
johntdyer
 
Posts: 9
Joined: Sun Jan 29, 2012 4:38 pm

Re: commenting out code blocks

Postby C0D312 on Sun Jan 29, 2012 5:25 pm

Sublime has two options: "Edit > Comment > Toggle Comment" and "Edit > Comment > Toggle Block Comment." They both have keyboard shortcuts.

Use them wisely.
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 18 guests