A lot of developers don’t know that “Duplicate Line” DOES exists in Visual Studio or SQL Server Management Studio. You don’t need CodeRush or ReSharper to duplicate current line.
Don’t select any text, just position cursor anywhere on the line you would like to duplicate. Then press CTRL+C followed by CTRL+V and current line will get duplicated.
Today I accidently found that default duplicate line in Visual Studio is also smart! If you do CTRL+C, the select part of line, and press CTRL+V the line will get duplicated, but the selected part will be removed. That’s fantastic, since you really don’t need exactly the same lines, right? They’ll eventually be different and this trick will surely help you.
Check the video demonstration: