microsoft / microsoft/vscode-remote-release
How to open specific file in remote container from vscode://vscode-remote link
@chrmarti is already working on this.
Since Jan 14, 2026.
- Dominant language
- Dockerfile
- Stars
- 4.2k
- Forks
- 469
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
I am able to open a dev-container to a particular directory with the following.
vscode://vscode-remote/dev-container+<hex_path>/workspaces
However I have been unseccessful in finding a way to specify opening a file from that point.
For example, a straight forward approach such as
vscode://vscode-remote/dev-container+<hex_path>/workspaces/path/to/file
will attempt to open the remote space on the file, rather than the workspace with the file open.
Is there a format that allows you to specify the file after specifying the remote space?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.