Skip to content

Tip 1.14: How to jump to the top or bottom of the current view in the editor without scrolling

December 8, 2013

“Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio“, courtesy of ‘Sara Ford’

Sara Ford’s Blog

Unlike pressing PgUp or PgDn, which causes the editor to move either up or down a page, the following keyboard shortcuts cause only the cursor to move:

  • Ctrl+PgUp jumps the cursor to the top of the current editor view without moving the current view, unlike a PgUp.
  • Ctrl+PgDn jumps the cursor to the bottom of the current editor view without moving the current view, unlike a PgDn.

If you find yourself using the keyboard shortcuts just shown, you may find these additional shortcuts helpful:

  • Ctrl+Shift+PgUp selects all the text between the current cursor location (near the bottom of the screen in the following illustration) and the top of the current editor view.
  • Ctrl+Shift+PgDn selects all the text between the current cursor location and the bottom of the current editor view.

One thing to note is that all four commands jump the cursor straight up, meaning that it doesn’t go to the beginning of the line on that top line, but rather it goes as close as possible to the current column position, as you saw in the preceding illustrations.

Happy Programming! =)

Advertisements
Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: