VS Code/open-file
Open a file
Opens a file, optionally jumping to a line and column.
Format
vscode://file/{path}:{line}:{column}Try it
vscode://file/Users/me/project/package.json:5:10OpenWhat you supply
{path}Absolute path to the file.
On Windows this includes the drive letter —
vscode://file/c:/myProject/package.json.{line}optionalLine number to jump to.
{column}optionalColumn to jump to.
Drop the :line:column and it opens the file at the top. Point it at a directory with a
trailing slash — vscode://file/Users/me/project/ — and it opens the whole project instead.
This is the link to put in a stack trace, a lint report, or a CI log: anywhere you have a path and a line number and want a click to land on it.
On Insiders, every one of these becomes vscode-insiders://file/….