Did you know... How to jump to the beginning of some selected text when hitting escape? - #092

I hope this tip’s title makes sense.  The idea is that you select some text and then hit escape.  Where do you want the cursor to go? 

Selected text with the selection anchor and cursor circled

If you want it to stay where it is, that’s the default behavior.  But if you want it to jump to the beginning of the selection (i.e. the selection anchor), you need to go to Tools – Options – Text Editor – General and check the Go to selection anchor after escape.

Go To Selection Anchor After Escape Tools Option

Technorati tags: VS2005Tip, VS2008Tip

Comments

  • Anonymous
    November 27, 2007
    There is another way to control which end of the selection the cursor goes to.
  • left arrow key - place cursor at start of selection
  • right arrow key - place cursor at end of selection The selection mode is escaped by using either of the keys.
  • Anonymous
    August 12, 2008
    このタイトルの意味が通じますように。どういうことかというと、テキストを選択してから Esc キーを押すとします。このとき、カーソルはどこに移動するのがよいでしょうか。 カーソル位置を動かしたくない場合は、それが既定の動作なので問題ありません。選択範囲の先頭

  • Anonymous
    December 17, 2008
    本篇包括tip91-tip100 http://www.watch-life.net/visual-studio/visual-studio-2008-tip-day-10.html #91、查...

  • Anonymous
    February 24, 2009
    Надеюсь, что заголовок этого совета все объясняет. Смысл состоит в том, чтобы выделить участок кода и