You might occasionally use the Goto Line or Line/Column feature in your IDE (Control-G
for VS Code, Command-L
for WebStorm), but did you know the Line and Column indicator works while opening a file, too? With Command-P
or Command-Shift-O
for VS Code and WebStorm, respectively you can add the line after a colon, and the column after a second colon.
When your test suite tells you where the error happened, you can paste that into your editor and go directly to the relevant code.
When the Initiator details in the Network panel of Dev Tools tells you the relevant line in a file, include it when opening the file and save on scrolling.
When another dev says, "On line 1234", just type it rather than scrolling.
This works in the browser Sources panel, too! Try it
Top comments (0)