I’ve thought about this for some time and have come to the conclusion that commented out code is evil. Sometimes it’s left there because someone’s hinting at alternative solutions in an attempt to be helpful or as a piece of historical antiquity for future generations to puzzle over but most of the time it serves as confusing misdirection, much like road signs in Ireland.
However, there are times when you need to quickly comment out a block of code (hopefully with the intention of uncommenting it later). For those cases, Ctrl-Shift-C does the trick and it can work on single or multi-line blocks of code. Just don’t turn into a comment-toggling fool. Comment goes on, comment goes off, comment goes on…
Today’s tip:
Ctrl-Shift-C: toggle comment