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
12
votes
1 answer

Configuring environment variables prior to creation of dev container

I am trying to integrate the Remote - Containers with my docker-compose.yaml. However, my compose file is making use of the variable substitution feature. services: command: yarn server environment: MONGO_URI:…
12
votes
3 answers

VScode SSH extension keeps disconnecting after moving to a new location

I recently moved to a different country, but I work remotely and therefore I thought that my workspace wouldn't be interrupted. However, now that I'm trying to connect to my workspace through ssh in vscode, the connection keeps disconnecting. I…
jua ja
  • 133
  • 1
  • 1
  • 5
12
votes
4 answers

Edit files with VS Code ssh tool that require sudo permissions

I am trying to edit some apache configuration files in a server. I would like to use VS code ssh plug in, but I have not found a way to save the configured file, since I am logging into the VM as a user (with sudo permissions) but not root! I get a…
George T
  • 169
  • 1
  • 1
  • 9
12
votes
3 answers

VSCode Remote Container - extensions not installing on dev container using docker-compose

I am having trouble getting extensions installed in the dev container using "Remote - Containers". I do not know if it's a bug, incorrect configuration on my end, or intended behaviour. Down below is my current configuration, both files are located…
rosengrenen
  • 731
  • 6
  • 21
11
votes
1 answer

Signing Git Commits on Remote VSCode Session

I am currently developing code on a remote server by using Visual Studio Code's remote SSH feature to remotely edit code using VSCode that is running on my local machine. Local machine is on Mac OS X Catalina 10.15.5, while the remote server is…
Nyxynyx
  • 61,411
  • 155
  • 482
  • 830
11
votes
1 answer

Open Containers in Remote SSH Hosts using VSCode

Using the Remote Development extension pack, Visual Studio Code is able to open a Docker container running on the current system, and to open a folder on a remote host connected using SSH. If there is a Docker container running on a remote SSH host,…
Nyxynyx
  • 61,411
  • 155
  • 482
  • 830
11
votes
13 answers

How do I resolve "Failed to parse remote port from server"?

I'm setting up a new remote host and every time I initiate it I get the following error output. How can I resolve this issue? Pseudo-terminal will not be allocated because stdin is not a terminal. Linux Destiny 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1…
Sean Zamora
  • 167
  • 1
  • 1
  • 6
11
votes
1 answer

Should I check in the VS Code dev container files? For example, the .devcontainer folder or .devcontainer.json file?

I created a new Dev Container in VS Code, and VS Code added .devcontainer folder to my workspace. Should I check this file in to git?
Matt Bierner
  • 58,117
  • 21
  • 175
  • 206
10
votes
1 answer

What is the difference between vscode remote-ssh and remote-tunnel connections

How does VSCODE's Remote SSH compare against Remote Tunnels for development in terms of speed and code protection? At a glance, it appears that SSH shares the workload (extension) across both machines While the Remote Tunnel works entirely on the…
10
votes
0 answers

VSCODE run in containers stuck for a very long time

When I used "Remote - Containers" extension of VS Code to setup a development environment, it stuck in one of the step for 661 seconds. What's the purpose of this step? Is there any way to boost this step? Below is part of the container log shown in…
WQY
  • 181
  • 2
  • 6
10
votes
13 answers

VS Code Remote - Can't run 'code' command in WSL Ubuntu 18 or WSL 2 Ubuntu 20 - wrong path

I'm having an issue when I try to run the code command from Visual Studio Code in WSL Ubuntu. I get the following error: $ code . /mnt/c/Users/Name/.vscode/extensions/ms-vscode-remote.remote-wsl-0.64.2/scripts/wslCode.sh: 63:…
10
votes
2 answers

Git extension disabled in VS code with WSL

The built-in Git extension has somehow become deactivated in VS code and can't be re-enabled. If I open the extension page it gives the following error: "This extension is disabled in this workspace because it is defined to run in the Remote…
pt3
  • 326
  • 1
  • 2
  • 8
10
votes
2 answers

How do you install an extension into the VS Code Server that's the remote end of Remote-SSH when there is no Internet connection?

I'm working in a network that has no direct internet connection. I have VS Code on my desktop PC and I use the "Remote - SSH" extension (version 0.55) to do development on a Linux VM. It works very well. From time to time I have need to install…
Peter Du
  • 548
  • 1
  • 10
  • 20
10
votes
0 answers

VSCode's Auto Attach is not toggling for Node.js

I use WSL to start VSCode with code . from my project directory in Windows Terminal. When VSCode starts up, "Auto Attach: Off" is shown in the status bar: Clicking "Auto Attach: Off" in the status bar does not toggle it. I then start my project in…
10
votes
0 answers

How to manually install VS Code Server (without VS Code trying to install again)?

I try to run my Visual Studio code in a container using "Remote-Containers: Reopen in Container". For this I have the following folder structure: .devcontainer/ devcontainer.env devcontainer.json Dockerfile certs.pem I can build the docker…
mgross
  • 550
  • 1
  • 7
  • 24