HIWR #1: Ctrl + P [VSC]
by winnie
Heres a hotkey i wanna remember (HIWR):
In Visual Studio Code (VSC) you can jump to a specific line number like this:
Keyboard Shortcut
-
Windows / Linux:
PressCtrl + G -
macOS:
Press⌘ + G
Then type the line number (e.g. 245) and press Enter.
VSC will move the cursor to the start of that line.
You can also combine it with Go to File:
-
Ctrl + P(or⌘ + P) opens Quick Open. -
Then type
filename:245to jump directly to line 245 in that file.