Questions tagged [vscode-remote]

Visual Studio Code Remote Development allows you to use a container, remote machine, or the Windows Subsystem for Linux (WSL) as a full-featured development environment

Visual Studio Code Remote Development allows you to use a container, remote machine, or the Windows Subsystem for Linux (WSL) as a full-featured development environment

868 questions
18
votes
3 answers

How to run docker-compose inside VS Code devcontainer

I have this multi-container project comprised of 3 NestJS and 1 dotnet5.0 application. Besides the applications, the project depends on a RabbitMQ and an InfluxDB services (running as pure docker images) The docker-compose file looks like…
empz
  • 11,509
  • 16
  • 65
  • 106
17
votes
3 answers

Use host networking while building a VSCode devcontainer

How can I get VSCode to use host networking during the build of the container? In devcontainer.json, I can set "runArgs": ["--network=host"] but that only applies to running the container. How can I get VSCode to use host networking during the…
Dan Hook
  • 6,769
  • 7
  • 35
  • 52
17
votes
2 answers

How to prevent new VS Code window from launching for remote ssh connections

When connecting to a remote machine using VS Code Remote SSH this act always opens a new VS Code Window. Is there a way to change this behavior to use the existing open window? Thanks
lordhog
  • 3,427
  • 5
  • 32
  • 43
17
votes
1 answer

How can I ensure VS Code Remote SSH server runs on a compute node of our cluster?

I would like to use VS Code Remote SSH to do development work on our institution's cluster. Our cluster uses an architecture with a login node that receives all SSH requests. We are discouraged from using the login node for any tasks that take…
16
votes
1 answer

Working directory of Visual Studio Code tasks

What is the working directory of a Visual Studio Code task? According to the official documentation, the default should be the workspace directory, i.e., workspaceFolder, but running a task which simply executes echo $PWD, it shows the parent…
16
votes
4 answers

How to install VS Code extensions in a Dockerfile?

Is there a way to install VS Code extensions in a Dockerfile?
16
votes
1 answer

alter PATH for VS Code Remote SSH

Using VS Code's new Remote SSH feature, how do I modify the PATH environment variable for its terminal? I've ssh'd into an Ubuntu 16.04 VM and it is not picking up /etc/profile or ~/.bash_profile. After opening the terminal, I can .…
Cameron Taggart
  • 5,771
  • 4
  • 45
  • 70
14
votes
1 answer

Looking for IntelliJ Remote Dev experience similar to VS Code Remote Dev Extension Pack

VS Code allows a local development experience with source code and source execution on a remote machine: https://code.visualstudio.com/docs/remote/remote-overview Is there a similar tool to this for use with IntelliJ? The VSCode extension pack…
14
votes
3 answers

Is there a way to launch Visual Studio Code and force it to open in a Remote Container?

I regularly open Visual Studio Code via code . and then have to click the Re-open in Container button. Am I missing any shortcut to force it to do this from the command line?
Hastarin
  • 345
  • 1
  • 11
14
votes
3 answers

How do I configure a different shell for a VS Code SSH Remote?

How do the change the shell used for VS Code's integrated terminal when I connect to an remote ssh workspace?
Matt Bierner
  • 58,117
  • 21
  • 175
  • 206
14
votes
2 answers

How to set a remote connection to a Vagrant container using "Visual Studio Code Remote - SSH"?

I'm exploring the new set extensions called VSCode Remote Pack and I want to connect to a Vagrant container using the Remote Container extension. Using a Windows 10 OS, how could I do that? I tried the extension but it requests me to have Docker…
13
votes
4 answers

VS code can't ssh to server: failed to create hard link

SETUP I have a windows 10 PC connecting to my linux server (ubuntu 18.04.2). I run/edit code on my powerful server by remotely accessing the server through VS code's ssh ability. It is super convenient to edit my code on the server with VS…
ArmandduPlessis
  • 929
  • 1
  • 8
  • 14
13
votes
1 answer

How can I use an env file to pass environment variables into a standalone vscode remote container?

I am using a standalone Go vscode remote container for development and would like to load environment variables into the container from a file. All examples I can find are using Docker Compose and its env_file option but using Docker Compose seems…
Pero P.
  • 25,813
  • 9
  • 61
  • 85
13
votes
1 answer

VSCode - open remote from cli

I use the new VS Code remote feature all the time and it is superb. I'm wondering if it is possible to open a specific ssh host / folder from the cli. That way I can script a spin up of my dev environment (vm, vs-code, etc)! I had a look at…
Allan Jardine
  • 5,303
  • 5
  • 30
  • 34
12
votes
2 answers

How to open local terminal when running VSCode in a Dev Container

I'm writing code with VSCode from inside a VSCode container. I can open terminals inside the dev container, but I can't figure out how to open a (VSCode integrated) terminal in my local machine. I can of course open a separate terminal application…
Chris Hayes
  • 11,505
  • 6
  • 33
  • 41
1 2
3
57 58