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: VS2005Tip, VS2008Tip

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>