Systems Engineering and RDBMS

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:

comment

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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: