ailinks:

VS Code/open-file

Open a file

Opens a file, optionally jumping to a line and column.

macos · windows · linux · updated 2026-07-12

Format

vscode://file/{path}:{line}:{column}

Try it

vscode://file/Users/me/project/package.json:5:10Open

What you supply

{path}

Absolute path to the file.

On Windows this includes the drive letter — vscode://file/c:/myProject/package.json.

{line}optional

Line number to jump to.

{column}optional

Column 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/….