Visual Studio Tricks


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


#34 Cut and Paste Collapsed code in Visual Studio

Outlining is a very popular feature of Visual Studio. Outlining is the [+] sign you see in Visual Studio on the left margin that lets your collapse and expand code. What happens if you select 3 visual lines of code, and the middle line of code is acutally a collapsed region? Watch this video to find out :)

Click Screenshot To Play Video

#34 Cut and Paste Collapsed code in Visual Studio

Runtime: 48Seconds - Resolution: 900X580 - File Size: 1.2Meg

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

Snippets / Notes:

 

This work is licensed under a Creative Commons license.

Visual Studio Tip / Trick #034 English Transcription:

Today’s visual studio trick of the day trick No. 34 was originally brought to you by Sara Ford September 11, 2007. Today’s trick is cut and paste a collapsed block of code. So many places on Visual Studio you can collapse your code and while that is collapsed if you select a single line that is effecting the entire block so we are on lines 5-10; I will expand this that all of our lines. But now if I cut this, I have in fact cut all 5 lines now I go from 5 to 6 and if I go to bottom that file and paste. You will see that paste the entire block of code. The same thing is true for drag and drop. So if something highlight I can move that line up and down, it will move the entire block of code.
Kick this Trick on DotNetKicks.com

2 comment(s)

  1.  avatar

    video is corrupt, ends prematurely

  2. admin avatar

    @memals,

    Thank you for the feedback. The video feels like it ends prematurely, but that really is the end. I'll be more careful in the end of videos to give a second or two of silence as to not sound like it's being chopped off.

    Again, Thank you for the feedback.


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