I tend to be more of a keyboard user, probably because I’m too lazy to reach all that way for the mouse.  When I first saw this functionality, I was surprised because it is just not something i would intuitively think of, but of course it makes completely sense once the "oh, I haven’t seen that before" wears off.

Dragging Code Illustration

Select the code block you wish to move by holding down the primary mouse button, and then drag the mouse pointer to the desired location.  To copy code to the new location, hold down the Ctrl key.

Not impressed?  You can also drag and drop code to a different file.  Drag the code above the desired file tab, as shown below. 

Drag code over the desired file tab to switch to that file

Although you’ll get the mouse "can’t drop" pointer, the editor will switch to that file.  Then just mouse down, and you’ll see the "drag and drop" pointer again.  Good times!

Technorati tags: VS2005Tip, VS2008Tip