Friday, August 19, 2011

Alt-Click-Drag

Alt-Click-Drag a selection in Visual Studio to select common things vertically without selecting everything in given lines of code



Addendum 5/9/2013: Alt-Click-Drag should really be Alt-Ctrl-Drag. Hold Alt and Ctrl together to obtain this effect. Drag the mouse while holding the two keys.

 
 

Addendum 9/19/2019: It's back to being Alt-Click-Drag anymore in Visual Studio 2019. You don't hold Ctrl anymore.

2 comments:

  1. Is there a keyboard shortcut for that?

    ReplyDelete
  2. Hi there. This blog posting is just bad. To obtain this effect you will want to hold both Ctrl and Alt and then drag out a selection. Alt-Click-Drag should have read: "Alt-Ctrl-Drag"

    ReplyDelete