Running the code in comments
Posted by decipherinfosys on January 6, 2009
Could not think of a better title for this blog post. A colleague at a client site showed me how to do this. Typically, when you are working on large pieces of code, at times you end up commenting and un-commenting a lot of code. At times, you also need to run the code that is commented out just to see the data or the meta-data. So far, I always used to un-comment it and then highlight that portion and run it. Well, that is not needed – you can use ALT + highlight the commented section and then run it, example:
When you do this, only the portion that you have highlighted is the one that you can run. This way, you do not need to comment/un-comment sections to execute them. Just a little tidbit that can save some time.