Sublime Forum

How Do I Automatically Comment Code?

#1

Hi there,

I’m new to Sublime Text 2 and am really enjoying it.

One thing I can’t figure out, though, is how to easily comment out code. With Dreamweaver it was fairly easy, I just select the code in question and there was a button with various different commenting options. I’m not sure how to do this, though, with Sublime Text 2. Should I make a snippet (if so, I’m not sure how to do snippets for selected text). Is there a plugin? Can I do it with ZenCoding?

Any help would be appreciated.

Thanks and be well,

Moshe

0 Likes

#2

CTRL+/ does line coments.
CTRL+SHIFT+/ does block comments.

Probably is CMD if you’re using Mac.

0 Likes

#3

Wow - doesn’t get much easier than that. Thanks.

0 Likes