Skip to content

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

March 19, 2013

“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! =)

Advertisements
Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: