Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8371527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T14:11:00+00:00 2026-06-09T14:11:00+00:00

Years ago I read about a visual studio shortcut which, if you had a

  • 0

Years ago I read about a visual studio shortcut which, if you had a selection, would move the caret/cursor to the start or the end of the selection.

I’ve tried searching for it, but can’t for the life of me find it again.

In the image below, the text is selected and the caret is at the end, (highlighted pink). This shortcut would move the caret to the start of the selection (highlighted yellow).

vs selection caret move

Does anyone know what this shortcut is?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T14:11:02+00:00Added an answer on June 9, 2026 at 2:11 pm

    I’m pretty sure that this the command called Edit.SwapAnchor. The documentation says that this command:

    Swaps the anchor and end points of the current selection.

    The keyboard shortcut probably depends on your IDE configuration (i.e., which language you indicated that you primarily develop in on first launch), but in mine it is mapped to Ctrl+R, Ctrl+P. That’s the default for C++ developers, matching the default shortcuts for VC++ 6.

    Edit:
    Indeed, this is the one you’re looking for. According to this post on the VS Tips & Tricks Blog, the keyboard shortcut is Ctrl+K, Ctrl+A.

    And back in VC++ 2 it was mapped to Ctrl+Shift+X.   🙂

    I’d open up Tools -> Options -> Environment -> Keyboard, type in “swapanchor” in the search box, and see what it’s mapped to in your environment. If you use it frequently, change it to something memorable.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A few years ago Eric Lippert blogged about a hypothetical infoof operator that would
I once read a page a few years ago about the various browsers' differing
About 10 years ago, I was using a computer language called INFO on an
About five years ago I started using Generic lookup Tables for applications I was
About six years ago, a software engineer named Harri Porten wrote this article ,
I recently read a question on here about static and dynamic linking, which reminded
I've read about the solutuon written here on a post a year ago wx.TextCtrl.LoadFile()
Years ago I was learning about x86 assembler, CPU pipelining, cache misses, branch prediction,
5-6 years ago when i was in school, I had C as my programming
Years ago, I wrote a code template that took a few simple parameters (points)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.