Go to Line
Go to line moves Text view to a line by its number. Use it when a log message, an error, or another tool gives you a line number.
Open the Go to line box
Section titled “Open the Go to line box”Press Ctrl + G, or select Go to line in the toolbar. You can also select More actions (…) → Go to line, or run Go to line from the command palette.
A box labeled Go to line: opens at the top of the viewer. Press Esc or click outside the box to close it.
Go to line works in Text view only. In Hex, Table, and NDJSON views, and while Grep view is open, the command is dimmed and the toolbar button does nothing. To go to a line from Grep view, leave Grep view first. See Grep view.
Enter a line number
Section titled “Enter a line number”Type the line number and press Enter. Line numbers start at 1, as in the gutter. Vaste scrolls the line to the top of the view and makes it the active line, with a highlighted background.
- A number larger than the last line goes to the last line.
- A decimal number is rounded down, so
12.9goes to line 12. - 0, a negative number, or an empty box closes the box without moving.
The box accepts plain line numbers only: no percentages, no relative offsets such as +100, and no column numbers.
Go to a time instead
Section titled “Go to a time instead”In a log file with timestamps, Go to time (Ctrl + Shift + T) jumps to the first line at or after a time. It needs an active timestamp format. See Timestamps and go to time.
Next steps
Section titled “Next steps”- Bookmarks: mark lines and jump back to them
- Searching a file: find a line by its text