Shortcut
Visual Studio Code Go to Line Shortcut
The Visual Studio Code shortcut to go to line is Ctrl + G on Windows. It's the same on Mac.
Quick Answer
- Windows
- Ctrl+G
- Mac
- Ctrl+G
- Web
- Not confirmed yet
Visual Studio CodeShortcut
Go to Line
Jumps to a specific line number.
How to go to line in Visual Studio Code
- Open Visual Studio Code and go to where you want to go to line.
- Press Ctrl + G on Windows or Ctrl + G on Mac.
Visual Studio Code Go to Line Shortcut for Windows
Press Ctrl + G.
Visual Studio Code Go to Line Shortcut for Mac
Press Ctrl + G.
Visual Studio Code Go to Line Shortcut for Visual Studio Code Web
We haven't confirmed a Visual Studio Code Web shortcut for this yet.
Related Keyboard Shortcuts
Frequently asked questions
What is the Visual Studio Code go to line shortcut?
On Windows, press Ctrl + G. On a Mac, press Ctrl + G.
Is there a Mac shortcut to go to line in Visual Studio Code?
Yes: Ctrl + G.
Does it work in Visual Studio Code for the web?
We haven't confirmed a web version shortcut for this yet.
Official source · How we verify