Click here to Skip to main content
15,893,486 members
Articles / Programming Languages / C#

Commenting/uncommenting segments easily in C#

Rate me:
Please Sign up or sign in to vote.
4.98/5 (28 votes)
24 Jan 2011CPOL 95K   8  
Comment out a large segment by changing a single line

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
12 Feb 2011SirTimothy
I use stuff like this quite often. Here's an extension, for switching quickly between two different code blocks://*doSomethingOneWay();/*/doSomethingAnotherWay();//*/As is, that will execute doSomethingOneWay(). To run doSomethingAnotherWay(), just take off the first...

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
CEO unemployable
Canada Canada
Christ Kennedy grew up in the suburbs of Montreal and is a bilingual Quebecois with a bachelor’s degree in computer engineering from McGill University. He is unemployable and currently living in Moncton, N.B. writing his next novel.

Comments and Discussions