Select from the Current Cursor Location to the Last Go-Back Marker

Keyboard:  CTRL + =
Command:  Edit.SelectToLastGoBack
Versions:  2008,2010
Published:  6/12/2010
Code:  vstipEdit0069


Let’s say you are writing some code and want to quickly select a chunk of text.  The cursor is at your starting location:



You click on a new location which results in a Go-Back Marker (you can’t see) being placed in the previous location (in this case, the beginning of line 5):



Now we have the Go-Back Marker at the beginning of line 5 and the current cursor location at the end of line 16. There are several criteria to get a Go-Back Marker, refer to this for more info:  In this case, I had to jump at least 11 lines to get my Go-Back Marker.  To select from the current cursor location to the last Go-Back Marker, just press CTRL + = and watch the magic happen:



And there you have it!  Selecting from the current cursor location to the last Go-Back Marker.

Comments (1)
  1. Ben says:

    Brilliant! I've been wanting something like this for a long time.

Comments are closed.

Skip to main content