microsoft / microsoft/vscode-remote-release

How to open specific file in remote container from vscode://vscode-remote link

Open
#11,429 0 comments 0 reactions 1 assignee View on GitHub

@chrmarti is already working on this.

Since Jan 14, 2026.

containers
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.