Skip to content

↑↓ moveEnter openEsc close

Go to line in VS Code

VS Code 1.96 · 138 shortcuts · checked Nov 2026 · Source: Microsoft docs

In Visual Studio Code, press Ctrl+G on Mac, Windows, Linux.

What else uses Ctrl+G?

More VS Code shortcuts: navigation

ActionMacWindowsLinux
Show all symbolsCmdTCtrlTCtrlT
Go to symbol in fileShiftCmdOCtrlShiftOCtrlShiftO
Show Problems panelShiftCmdMCtrlShiftMCtrlShiftM
Go to next error or warningF8F8F8
Go to previous error or warningShiftF8ShiftF8ShiftF8
Navigate editor group historyCtrlShiftTabCtrlShiftTabCtrlShiftTab
Go backCtrl-Alt←CtrlAlt-
Go forwardCtrlShift-Alt→CtrlShift-
Toggle Tab moves focusCtrlShiftMCtrlMCtrlM

All 138 VS Code shortcuts