Box Selections and Multi-Edit in Visual Studio 2010

Published 21 June 09 11:12 PM | Coding4Fun 

I wasn’t aware of box selection which has been in Visual Studio for some time now until I viewed this video for what is coming up with Visual Studio 2010.  The video shows off some additional multiline editing functions added in 2010.

All I have to say is holy gazooks Batman that is power!

[via http://blog.filipfracz.net/]

Filed under: ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Stefan said on June 22, 2009 4:11 AM:

I can't get this to work, using VS2010 Beta 1 Version 10.0.20506.1

# Sam said on June 22, 2009 9:13 AM:

I can think of any number of times where that would have saved me a great deal of time on a project. I'm definitely looking forward to it.

# george said on June 23, 2009 4:44 AM:

awesome, I never realized i could box delete in 2008!!

# ram said on June 23, 2009 2:49 PM:

I have one comment from the box selection video. I saw in the end when printing all the pens after the copy & paste of all the pen variable we had to manually delete all the semi colons. Because I love the fact that we now have box editing, box inserting, box pasting but we still have to do some tasks manually if the content is not similar or rectangular.

My request is why don't the Visual studio team has a search & replace on the box selections. This would cover most of the scenarios and better end to end editing without any manual work. This would be even batter in cases where we are editing huge documents

# VSEditor said on June 23, 2009 7:10 PM:

@Stefan:

As you've noticed, this feature isn't in VS 2010 Beta1.  We implemented it after Beta1 was released, largely because of customer feedback from people who used box selection in previous versions and missed it in VS 2010.  You'll be able to play with this feature and everything you see in the video in the next release of VS 2010.

@ram:

It's true that some tasks still need to be done manually or with a macro if the content isn't rectangular.  But we actually do have the ability to search and replace in selections, including box selections.  Another user commented on this when I posted this video on the VS Editor team blog (link below), and I wish I had thought to use it to delete the semicolons.  To use this feature in VS 2008 or 2010, you can just make a selection, box or otherwise, then press Ctrl+F to bring up Find.  The "Look in:" dropdown will default to "Selection", and you can do a find or find/replace just in your selection.

Thanks for the comments, everyone!  I designed this feature, so if you have more feedback on it, I'd love to hear it :-)

Brittany Behrens

Program Manager, VS Platform

http://blogs.msdn.com/vseditor

# VSEditor said on June 25, 2009 11:05 PM:

@Stefan -

This post doesn't mention it, but this feature was implemented after Beta1 shipped, largely in response to feedback from people who used box selection in VS 2008 and missed it in VS 2010 Beta1.  You'll be able to play with it and do everything shown in the video in the next release of VS 2010.

@ram -

You're right that there will still be some tasks that require manual editing or a macro, especially when text doesn't quite line up.  However, we actually do have the ability to use find and replace in a selection, including box selection, and I wish I had thought to use it in this demo.  To see it in action in VS 2008 or 2010, just make a selection (box or otherwise) and press Ctrl+F or Ctrl+H to bring up the Find or Replace dialog.  The "Look in:" box will default to "Selection," and you can then search and/or replace in the selection you've made.

Thanks to everyone for the feedback - I designed this feature for VS 2010, so I'd love to hear any other thoughts you have.  Comments are welcome here or on the VS Editor blog at http://blogs.msdn.com/vseditor, where this demo video was first posted.

Thanks again!

Brittany Behrens

Program Manager, VS Editor

http://blogs.msdn.com/vseditor

# Adam said on June 26, 2009 5:20 PM:

This is straight from UltraEdit's Column Mode.... nice. Finally I don't have to copy and paste between UE and VS.

# Cron said on July 18, 2009 1:20 AM:

Nice. Box selection will surely save me a lot of time.

Leave a Comment

(required) 
(optional)
(required) 

  
Enter Code Here: Required

Search

This Blog

Syndication

Page view tracker