Visual Studio Tricks


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


#47 Swapping Anchor points (THIS IS COOL!) in Visual Studio

Swapping anchor points. This one left me wondering for a few minutes, but afer I figured it out, it was very nice. Many times I've selected the wrong text by a line or character or two. Only to have to reselect the entire selection.

This video trick shows you how to expand your selction on the top of bottom - no matter which direction you selected up or down. It is one of my favorites so far.

Click Screenshot To Play Video

#47 Swapping Anchor points (THIS IS COOL!) in Visual Studio

Runtime: 1Min 45Seconds - Resolution: 900X580 - File Size: 1.8Meg

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

Snippets / Notes:

[CTRL]+[K] + [CTRL]+A

This work is licensed under a Creative Commons license.

Visual Studio Tip / Trick #047 English Transcription:

Today’s Visual Studio video Trick of the day trick #47 is video repost of Sara Fords original blog trick 47 back in Sep 2007. The trick is Swapping Anchor points so if you are selecting something as I move my cursor up you can see its now focus on line 8 and if I [Shift] select with my arrows now my cursor is down at line 14. You can also do selection with your mouse is very common for us and my cursor usually ends up at the last point you have selected so you do [CTRL]+[K],[A] your cursor will swap to the other end of that anchor point so my cursor moved from line 11 up to line 7. I was struggling to find out that how this was useful because if you have a selection it’s pretty much known at that point anything else you do will either replace the selection or lose the selection so if you just start typing so that will effectively wipes the selection but Josh on CloudDB.com team pointed out that if you are starting to select something from the middle of the text I am right in the middle of the word updated here and I started scrolling up and in fact I wanted to select more of that text but I cannot do a [CTRL]+[K],[A] which will move my cursor anchor point to the end now I can continue to add more to that selection so this now becomes a pretty cool useful trick to me, [CTRL]+[K],[A] goes to the top I can add to or subtract what I am trying to select, [CTRL]+[K],[A] goes to the other line and I can in fact move the end point so that a pretty cool trick [CTRL]+[K],[A] is confirmed to work in Visual Studio 2005 as well as 2008.
Kick this Trick on DotNetKicks.com

4 comment(s)

  1.  avatar

    That's really cool! But on my Studio it's Ctr+E+A!?

    E for Edit and A for Anchor. Pretty easy to remember. But why is it different from yours?

  2. admin avatar

    @Stranger,

    Do you have any add-on's installed, or is your Visual Studio right out of the box?

    Do you remember what profile you chose to get started, when you installed Studio?

    And are you on 2005, or 2008?

  3.  avatar

    It's the c# profile and the only plugoin I'm aware of ist AnkSvn. Oh, and it's VS 2008.

    But it's not the first time I'm wondering why others are using different shortcuts. e.g. accessing the several tool windows always starts with Ctrl+W (for window, of course) on my VS. So Solution window ist Ctrl+W+S, Output Ctr+W+O etc. But often I see people use Ctrl+K+Letter). Even AnkSvn uses Ctrl+K+C for the Pending Changes window by default. Why K? What's the deal with that Ctrl+K guy?

  4.  avatar

    Can confirm that both shortcuts work in my environtment :)


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