skip to Main Content

I’m trying to move to vscode.dev for totally online coding. I was able to SSH into my computer via the remote tunnels extension. However, I was not able to install the devcontainers extension, neither run/build a devcontainer, on the browser. Using vscode locally I can do that, but I’d like to use a devcontainer on the browser as I’m on a tablet

2

Answers


  1. I do not think Dev Containers is meant to be used from a remote vscode.dev environment, only from a local OS and VSCode:

    https://code.visualstudio.com/assets/docs/devcontainers/containers/architecture-containers.png

    GitHub Codespaces would provide an online development experience closer to what you need, since it does support Dev Containers

    As illustrated in this thread, you can use both:

    • Launch VSCode
    • Make sure dev container and GitHub Repositories, and GitHub CodeSpaces extensions are installed
    • Ctrl-Shift-P > Dev Containers: Create Dev Container...
    • Define the dev container, include GitHub CLI feature, and launch it.
    • Open Terminal in dev container
    • git init -b main && git commit -a -m "Dev container"
    • gh repo create YourAccount/RepoName --private --source . --push (and any other commands)
    • Ctrl-Shift-P > Codespaces: Create New Codespace

    As commented, it is not supported yet, and depends on issues like:

    Login or Signup to reply.
  2. There’s an open issue for that and itappears that it’s in the backlog

    https://github.com/microsoft/vscode-remote-release/issues/9059

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search