Home ยป Technology | Useful tips

Select desired number of columns (vertical selection) in visual studio for easy copy paste

  16. May 2010 by Soan

We all are familiar with windows select, copy and paste feature in Visual studio (Development IDE).

 

This is a common select, copy and paste where in you either use Shift + arrow keys or select text using mouse. This selection is basically selecting all columns and all rows in the text area.

Ever had the need to select only some columns to easily copy and paste the redundant code? For example, if you just want to copy all the 'Using System' from the left and then copy paste it somewhere else?

How would you select only these two words from multiple rows? 

Here is the answer:

 

For selecting only specific columns vertically, you need to use the 'Alt + Mouse' combination to select the desired number of rows and columns. Please note that using Shift will not work here.

Just press 'Alt' key and move your mouse to select the area.

Once selected, you can easily copy and paste this text anywhere and the text's formatting will remain intact.

 

This method can also be used to select any area in between the lines also.

Please refer the picture to understand the selection. Once again you need to use 'Alt + Mouse'. 

 

Here is the result of the copy and pasting of the above text.

All these features of Visual studio make it a real good tool for development of world class applications.

 

Would you like to share this article?

QR Code for this page Scan this QR code to open this
article in any mobile browser
or share with friends.


For more helpful articles like this, subscribe to our free newsletter or stay connected on social networks:

SUBSCRIBE
Subscribe to AM22 tech in Reader or by Email
Sign up for our updates in Email (Free):

 

Have questions? Write into comments or ask in forum