Cool Visual Studio 2010 Feature Vertical Editing
Ever have a block of code that you need to make a changes to? It gets a bit tiring changing each line with the keyboard. I ran across a cool feature of Visual Studio 2010 that helps to solve this.
For example, if you have the following list of variables
![](/Articles/files/Thomas-Robbins/vertical/image001.aspx?width=522&height=179)
You realize that you need to place an I in front of the variable names. Using the vertical editing feature you can change all lines at once. By using the following steps:
1. Press the <Alt> key and select the block where you want to add the text
![](/Articles/files/Thomas-Robbins/vertical/image002.aspx?width=530&height=207)
2. Release the <ALT> key and press 'i"
![](/Articles/files/Thomas-Robbins/vertical/image003.aspx?width=471&height=151)