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).
Ctrl+PageDown will jump the cursor to the bottom of the current editor view.
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.
Ctrl+Shift+PageDown will select all the text between the current cursor location and the bottom of the current editor view.
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: VS2005Tip, VS2008Tip
Comments
Anonymous
September 24, 2007
Also, using the same key combinations, but replacing PGUP/PGDN with HOME/END will scroll to the top/bottom of the document.Anonymous
September 24, 2007
PingBack from http://msdnrss.thecoderblogs.com/2007/09/24/did-you-know-how-to-up-to-the-top-and-bottom-of-the-current-view-in-the-editor-without-scrolling/Anonymous
September 24, 2007
Great tip. I could have used this one ages ago.Anonymous
June 25, 2008
エディタで Ctrl + PageUp キーを押すと、現在のエディタ ビューはそのままの位置で、カーソルが現在のビューの一番上に移動します。 PageUp キーだけを押した場合は、現在のエディタ ビュー全体がAnonymous
October 07, 2008
Ctrl+PageUp переместит курсор наверх видимой части страницы редактора без изменения положения самой страницы