Search code examples
visual-studio-codekeyboard-shortcuts

What is the keyboard shortcut for going to the first or last line of a file in VS Code without having to enter a line number?


I know that in VS Code there is a shortcut for entering the line number to go to a specific line (ex. on Windows, I can use ctrl-g). Are there shortcuts for going to the first line (top of file) or last line (bottom of file) in VS Code without having to enter the line number?


Solution

  • If you are on Windows/Linux:

    • Very first line: Ctrl + Home button.
    • Very last line: Ctrl + End button.