• Home
  • About

Eclipse Tips

Feeds:
Posts
Comments

Can anyone comment on this?

November 23, 2007 by David

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

Posted in editor | Tagged I bet even GPS is confusing in Ireland | No Comments Yet

  • Archives

    • June 2008
    • December 2007
    • November 2007
  • Category Cloud

    debug editor help navigation other plugins refactoring run search

Blog at WordPress.com.

Theme: Mistylook by Sadish.