Visual Studio Tricks


Visual Studio (2005,2008,2010) Tips and Tricks.


#2 Block or Column Select, Cut, Copy, Paste

Block or Column select has to do with selecting text for copy/paste/cut actions. You’re probably already aware of [SHIFT]+[Arrow] to select left or right, or up or down. You’ve even in fact used these keys in combination with each other to get just he right selection. Throw the [ALT] key into the mix and check out what happens.

Click Screenshot To Play Video

#2 Block or Column Select, Cut, Copy, Paste

Runtime: 97 Seconds - Resolution: 900X580 - File Size: 1.6Meg

Direct Download: If the video does not work for you,
Click Here to download it.

Snippets / Notes:

[SHIFT]+[Arrow Key] = Select one letter or line (for up|down) at a time

[SHIFT]+[CTRL]+[Arrow Key] = Word Select

[SHIFT]+[ALT] +[Arrow Key] = Block Select

[ALT] + Mouse Drag = Column|Block Select from mouse X,Y to new X,Y coordinates.

UPDATE :: DECEMBER 2009

Block Select get's even better in Studio 2010, Watch Video 503 for more information.

Visual Studio Tip / Trick #002 English Transcription:

Hello and thank you for watching VS tricks.com Trick No.2. Today’s trick is a video repost of Sara Ford’s original published tip # 2 back in July of 2007. The tip is block select or column select. So typically if you want to select something in Visual Studio you can double click it with a mouse. You can double click and then drag and drop, or many of you are used to using your key board. So [CTRL]+[SHIFT] left/right will select a word and than naturally you have [SHIFT]+[UP Arrow] and [DOWN Arrow] to do a line select. So now if we introduce the [ALT] key watch what happens? [SHIFT]+[ALT]+[LEFT Arrow] doesn’t look like anything big is happening there, but now as I go [UP Arrow] and [DOWN Arrow] I can do a block select so the key stroke combination is [SHIFT]+[ALT] and if you just do [SHIFT]+[ALT]+[Down Arrow] that starts doing a line select until you go [Left Arrow] or [RIGHT Arrow] and that gives you a block select. One thing I found you can also do an [ALT]+ Drag and Drop with your mouse. So you can highlight a block of text by just holding down [ALT] key first and than starting a drag and drop. Now what’s interesting is after you have this selected you can to do a cut [CTRL]+[X] and than based on where your cursor is you can do a [CTRL]+[C] Paste which will do a block paste as well so if we get back to [CTRL]+[Z] all the way back to beginning. I can actually cut this then paste it right back in the same position or for some reason you need to paste in different position of the line that works as well.
Kick this Trick on DotNetKicks.com

5 comment(s)

  1.  avatar

    Definately helpful, especially for IM conversations. Don't know how many times I've had to unindent as much as possible so as much code/text as possible would fit in the Live Messenger window. Will definately be memorizing this one!

  2.  avatar

    I use the VS block select on occasion but it's still pretty limited. I hope that future versions of the IDE will mimic the block functionality of Ultraedit. I haven't found any other editor/IDE that compares and it's the sole reason I keep going back to UE.

  3.  avatar

    Sadly not as powerful as jEdit's block editing - for instance, when a block is selected, typing occurs only in 1 line and not the whole block.


Main RSS Feed (All Posts)

Scott Cate Main Blog FedSample topics include personal, work, community, technology, and Video Tricks.

Visual Studio Tricks Feed (New)

Scott Cate Visual Studio Tricks RSS FeedOnly contains Visual Studio Tricks. These are 99% video tricks!

Technology RSS Feed

Scott Cate Technology FeedTechnology Only! Tips, Tricks, Programming, Tech Events, and other geeky subjects.

Want Email Notifications of New VSTricks

What is your email?

Twitter @ScottCate

  • Don't forget - tonight's asp.net user group meeting - 5:30-8, info on AZGroups.org
  • Please don't assume using Twitter to communicate will get you a response. Send Email or Call. No. I didn't get your Tweet last week.
  • Don't Forget the Azure User Group in PHX meets tonight - details here http://goo.gl/MBXT
  • I have it turned on as an option in Labs. maybe it moved from Labs into core?? Check yr Lab settings (@timheuer)http://yfrog.com/1dmqtp
  • Congratulations Canada - Great Hockey Game!

Twitter @VSTricks

  • RT @zainnab: Visual Studio 2010 Tips and Tricks Begins!: Happy to announce that the New Year marks the beginning .. http://bit.ly/8pZh0O
  • Congratulations to all @VSTricks entries. @Kazuk was the winner. Video shows how the random was done http://bit.ly/8EDCwW (if u care)
  • @kazuk Congrats - you are the winner - video being posted shortly - please DM me your email
  • @leemessenger @ericfickes @DarrellHardy Trick 504 has been fixed. No login needed. http://bit.ly/71OGcF
  • OK Everyone! Trick 504 is fixed! No user/pwd needed. Debug ASP.net in any browser with #VisualStudio http://bit.ly/7QaCSi

GetClicky Web Stats

Web Analytics