5

(Running 1.21.1 on OS X 10.12.6)

I found a reference to this ability elsewhere on SO, but the keystroke given scrolls the screen up/down one line, it doesn't move the cursor to the top/bottom of the screen. Maybe it's different on Windows than Mac?

I've searched for "top" or "first" or "screen" in both Keyboard Shortcuts and the keybindings file itself, but I don't see anything.

I'm either missing something (probable), or I'm not searching for the right words. What is the key and/or command for this?

vr8ce
  • 476
  • 2
  • 13
  • Your answer is here: https://stackoverflow.com/questions/51554277/how-can-i-configure-ctrlpgup-and-ctrlpgdown-keybindings-in-vscode-navigate-to/51554508#51554508 Not a duplicate though to aid searchability. – Mark Jun 18 '19 at 19:29

2 Answers2

6

In Windows the default keybindings are CtrlHome and CtrlEnd.

The Command are cursorTop and cursorBottom. I am not sure in OSX, but the command should be the same.

Sebastián Palma
  • 32,692
  • 6
  • 40
  • 59
Lucien
  • 118
  • 1
  • 6
  • 3
    cursorTop/Bottom position to the top/bottom of the *file*, not the *screen*. On the Mac they are assigned to cmd-Up/Down (most Windows Ctrl-keys turn into Cmd-keys on the Mac). – vr8ce Apr 06 '18 at 05:15
0

In visual studio, ctrl + shift + page up / page down will move cursor to top and down of the screen with selection.

Arghya Sadhu
  • 41,002
  • 9
  • 78
  • 107
  • No, it doesn't. And even if it did, I don't want selection, I just want to move the cursor. Removing the "shift" and just using cmd+pageUp/Down doesn't do the right thing, either. – vr8ce Sep 04 '20 at 17:06