Welcome to MSDN Blogs Sign in | Join | Help

Sara Ford's Weblog

My adventures embracing open source on CodePlex and at Microsoft

News

    • Did you know... All author proceeds go directly to sending Hurricane Katrina survivors to college.

      Microsoft Visual Studio Tips book

      Recent Entries

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: ,
Posted: Tuesday, November 27, 2007 3:00 AM by saraford

Comments

Doug said:

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.

# November 27, 2007 8:44 AM

Visual Studio 2008 ワンポイント said:

このタイトルの意味が通じますように。どういうことかというと、テキストを選択してから Esc キーを押すとします。このとき、カーソルはどこに移動するのがよいでしょうか。 カーソル位置を動かしたくない場合は、それが既定の動作なので問題ありません。選択範囲の先頭

# August 13, 2008 7:38 AM

xjb said:

# December 17, 2008 8:23 PM

Секреты Visual Studio said:

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

# February 25, 2009 2:16 AM
New Comments to this post are disabled
Page view tracker