Did you know that you can use column/box selection within visual studio? We are so used to copying and pasting code using line selection that most of the developers never realise there is an alternative way of selecting parts of code spanning over multiple lines.
For example let’s assume you have the following code and you only want to copy the variable declarations:
string myAddressLine1 = “Address Line 1″;
string mySurname = “Surname”;
string myName = “Name”;
You can achieve this by by holding down Shift-Alt and move the arrow keys around ![]()
Believe me, this trick is quite handy to learn… I’ve only used it a few times but saved me a lot of effort when I needed it.

