Monday, August 11, 2014

Tip 1.8: You can drag code or text to a new location

"Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio", courtesy of 'Sara Ford'

Sara Ford's Blog

Sara Aside

She tends to be more of a keyboard user, probably because she's too lazy to reach all that way for the mouse. When she first saw this functionality, she was surprised because it is just not something she would intuitively think of, but of course it makes complete sense once the "Oh, she hasn't seen that before" feeling wears off.

Select the code block you want to move by holding down the primary mouse button, and then drag the mouse pointer to the desired location. To copy code to the new location, hold down the Ctrl key.

Not impressed? You can also drag code to a different file. Drag the code above the desired file tab, as shown next.

Although you'll get the mouse "can't drop" pointer, the editor will switch to that file. Then just move the mouse pointer down into the file, and you'll see the good ol' "drag and drop" pointer again. Enjoy!

Happy Programming! =)
Posted by Nils-Holger at 1:52 PM with 0 comments.
Add Your Comment