Share via


The Best of Visual Studio 2010: Pasting a single selection into a box selection

Keyboard:  SHIFT + ALT + [ARROW]
Versions:  2010
Published:  1/13/2010
Code:  vstipEdit0008

 

In a previous tip, we looked at pasting one box selection into another.  In this tip we will see how to take a single selection and put it into a box selection.

Let's assume you have a setup like this:

clip_image002

 

But you realize that you need to change int to double.  No problem!

Select the double keyword and copy it (CTRL + C):

clip_image004

 

Then box select the destination (SHIFT + ALT + [ARROW]):

clip_image006

 

Finally, do a paste (CTRL + V) to see the result:

clip_image008

 

I've used this one a lot since I first heard of it and it totally rocks!