Share via


Pasting the contents of one box selection into another

Keyboard:  ALT + Left Mouse 
Versions:  2008,2010
Published:  1/12/2010
Code:  vstipEdit0007

 

There is a feature that allows you to leverage the power of box selection to do all kinds of great things.  One of those things is pasting one box selection into another. 

 

Let's assume you have a couple of sets of variables like this:

image

 

But you realize you wanted the first set of variables to be the same data types as the second set (and in the same order).  Yes, it's a bit contrived but stay with me :)

Simply box select (ALT + Left Mouse) the second set of data types then copy the selection (CTRL + C):

image

 

Next, select the first set of data types (ALT + Left Mouse):

image

 

And paste (CTRL + V):

image

 

That's all there is to it!  Pretty cool, huh?

Comments

  • Anonymous
    January 12, 2010
    Cool, I knoew about the copy but not the paste :) Steve

  • Anonymous
    January 12, 2010
    The comment has been removed

  • Anonymous
    January 12, 2010
    This is a great tip! I didn't realize VS did this so I used to copy to UltraEdit and paste back into VS. Thanks!

  • Anonymous
    January 14, 2010
    This isn't new. It works in Vs2008. (VB)