Friday, July 11, 2008

image

This one is huge. You really need to learn this one, if you don’t already know and use it. Anytime you are working with code you, you will need to comment parts of and uncomment parts of it. It is just a part of a developer’s life. The mechanic will get his hands dirty, the carpenter will get splinters, and the developer will comment and uncomment code.

I guess the worst way you could comment and uncomment your code is to type it all by hand. Next worse would be to use the mouse and go to Edit menu, Advance menu item, then click Comment Selection or Uncomment Selection. Another option that is to use the Text Editor Toolbar (see below).

image

 

 

A little better I guess is to use the keyboard accelerator shortcut: Alt, then E, then V, then M for (Comment Selection), or E for (Uncomment Selection).

That’s four okay ways of comment and uncommenting your code, but what is the best way?

Comment Selection

Ctrl + K, Ctrl + C

Uncomment Selection

Ctrl + K, Ctrl + U

Note: The image above will take you to a full size image if you want to see this in more detail.

Feedback:

If you have a favorite Visual Studio Tip or Trick be sure to share it in the comments. I’ll compile a list and post it for everyone once there are enough.

PowerPoint: 31 Days of Visual Studio 2008 Tips & Tricks.pptx (Note: PowerPoint is updated daily to include new items.)


Friday, July 11, 2008 01:52:00 (Eastern Standard Time, UTC-05:00)  #    Comments [0]  |  Trackback
Comments are closed.

Theme design by Jelle Druyts

Pick a theme: