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... How to up to the top and bottom of the current view in the editor without scrolling? - #045

Ctrl+PageUp will jump the cursor to the top of the current editor view without moving the current view.  (if you were to just press PageUp, the current editor view would jump up an entire page).

Cursor on the top view of the editor

Ctrl+PageDown will jump the cursor to the bottom of the current editor view.

Cursor on the bottom view of the editor

Additionally, if you use these keyboard shortcuts, you may find these shortcuts helpful:

Ctrl+Shift+PageUp will select all the text between the current cursor location and the top of the current editor view. 

Text selected from current cursor position to top of buffer

Ctrl+Shift+PageDown will select all the text between the current cursor location and the bottom of the current editor view.

text selected from current cursor position to bottom of buffer

The one thing to note is that all four commands will jump the cursor straight up, meaning that it doesn't to go the Beginning of Line on that top line, but rather as close as possible to the current column position, as illustrated in the above 2 photos.

Technorati tags: ,
Posted: Monday, September 24, 2007 3:00 AM by saraford

Comments

Daniel Niezgocki said:

Also, using the same key combinations, but replacing PGUP/PGDN with HOME/END will scroll to the top/bottom of the document.

# September 24, 2007 8:18 AM

Jason Haley said:

# September 24, 2007 10:02 AM

Jason Haley said:

# September 24, 2007 10:04 AM

Justin said:

Great tip.  I could have used this one ages ago.  

# September 24, 2007 6:17 PM

Visual Studio 2008 ワンポイント said:

エディタで Ctrl + PageUp キーを押すと、現在のエディタ ビューはそのままの位置で、カーソルが現在のビューの一番上に移動します。 PageUp キーだけを押した場合は、現在のエディタ ビュー全体が

# June 25, 2008 10:12 PM
New Comments to this post are disabled
Page view tracker