Welcome to MSDN Blogs Sign in | Join | Help

Sara Ford's Weblog

My adventures embracing open source on CodePlex and at Microsoft

News

    • Did you know... All author proceeds go directly to sending Hurricane Katrina survivors to college.

      Microsoft Visual Studio Tips book

      Recent Entries

Did you know... How to do Box / Column Selection in the editor? - #002

Box and Stream Selection Comparison

Did you know that Visual Studio offers two different selection models Stream and Box?

Stream selection is what everyone is familiar with using Shift+Arrow Key. 

Box selection allows you to manually select columns and lines at the same time.  Just hold down Shift+Alt+Arrow Key, and you’ll quickly get the feel for box selection.  Cut, Copy, Paste... it all still works, but just keep track of where you started to select the text.  Ah, it brings back testing memories...

Technorati tags: ,
Posted: Friday, July 27, 2007 9:00 AM by saraford

Comments

Marc T said:

Hooray for the return of the Tip of the {timespan}!

# July 27, 2007 4:20 PM

Jason Haley said:

# July 28, 2007 8:39 PM

GregM said:

You used to be able to start box selection (or column selection as it was called then) using a single keystroke, and you didn't have to use special selection extend keys to extend the selection, just the normal selection extend keys.  It was much easier to use then.  I've asked in Connect about why this was removed, and no one could come up with a reason why.

Any ideas?

# July 28, 2007 9:05 PM

saraford said:

@GregM - which version of VS are you referring to?  I'll go ask around.  Also, can you send me the connect link, so i can update it when i find out?  Thanks!

# July 28, 2007 10:54 PM

Peter Ritchie said:

https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=139752

But, I fail to see how the addition of pressing "Alt" for column selection make it that much harder to use.

# July 29, 2007 11:21 AM

GregM said:

I used it in Visual C++ 4.1, 4.2, 5.0, and 6.0.

If you're not used to the old method, it may not seem that bad, but after 8 years using the old method, I find it extremely difficult to have to use one set of keys for extending a current regular selection and a different set of keys for extending a current column selection.  This requires that you hold down *two* modifier keys at the same time (Alt and Shift), while moving the cursor with the arrows.  The old method didn't require any modifier keys at all.

I'm hoping that's the right link above, because I can't seem to log in to connect right now, it's not letting me past the "update your profile" page.

# July 30, 2007 4:01 PM

Peter Ritchie said:

GregM: I've always used Shift-arrow to regular select, using Alt-Shift-arrow to column select isn't that different.  What keystrokes are you using?  Also, once you start selecting in one mode you've essentially toggled that mode.  E.g. Shift-arrow begins regular selection, pressing Alt as well after that continues regular selection (not column selection).  Alt-Shift-arrow begins column selection, unpressing Alt (i.e. continuing with just Shift-arrow) results in expanding the column selection.

# August 1, 2007 2:21 PM

GregM said:

In the Visual C++ 6.0 and earlier version, once you're in column select mode, you stay in column select until you explicitly exit, or do something like copy or paste.  When in this mode, you can just use the arrow keys (or any other cursor navigation functions) to move around and expand the selection.  You don't lose your selection if you accidentally let up on the shift key slightly and the keyboard thinks you released the key.

# August 1, 2007 8:31 PM

flashyin said:

盒式选择(Box selection)允许你同时手动选择行和列。只需要按下Shift Alt 方向键,你就能知道盒式选择是怎么回事。

# January 24, 2008 5:31 AM

Секреты Visual Studio said:

Знаете ли вы, что Visual Studio поддерживает две различные модели выделения текста – строковое и блочное.

# June 22, 2008 8:57 AM

Visual Studio 2008 ワンポイント said:

Visual Studio には、ストリーム選択とボックス選択という 2 つの選択方法があることをご存知でしたか。 ストリーム選択とは、 Shift キーと方向キーを組み合わせたおなじみの選択方法です。

# July 14, 2008 12:00 AM

xjb said:

VisualStudio2008每日提示(tipofday)是2007年7月SaraFord在她的博客里推出了VS2008每日提示系列,里面收集了许多使用VS2008技巧和诀窍,截至...

# November 30, 2008 7:57 PM

Benson-希 said:

VisualStudio2008每日提示(tipofday)是2007年7月SaraFord在她的博客里推出了VS2008每日提示系列,里面收集了许多使用VS2008技巧和诀窍,截至...

# December 9, 2008 3:41 AM

Visual Studio 2005-2010 said:

Video Repost of Original VSTip of the Day #0012 . 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

# January 7, 2009 10:29 AM

Community Blogs said:

Here are a few non-trivial tips for .NET developers. The first ones are from the excellent blog of Sara

# March 9, 2009 12:45 PM

Sara Ford's Weblog said:

Tip #0 Know your Keybindings! General Development Settings Searching Tips Tip #1 How to behold the power

# May 28, 2009 5:04 AM
New Comments to this post are disabled
Page view tracker