I\'m writing ANSI-compatible C code, and hence I can\'t use the line (//) comment. I\'m using Xcode. In Sublime Text and Eclipse, and I think most other IDEs, t
//
Try command + /. It works for me.
So, you just highlight the block of code you want to comment out and press those two keys.