Sublime Forum

Commenting out code blocks

#1

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

0 Likes

#2

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

Use them wisely.

0 Likes