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

vscode nodejs remote debug RPi

I am trying to set up VScode to debug a remote nodejs app on a Raspberry Pi 4. I use VScode - Insiders and the Remote Development extension with Remote - SSH (nightly). The SSH connection works perfectly fine and I can debug remote Python programs…
csk
  • 71
  • 4
5
votes
1 answer

Disable Opening of Large Files in SSH

Is it possible to prevent VSCode from opening large files when in SSH, using the Remote - SSH extension? If I accidentally click on a large file, the program hangs until it is downloaded or even disconnects.
farmer1922
  • 51
  • 2
5
votes
0 answers

Attach vscode to a running container on ssh server

I have successfully connected to the ssh server in VS Code using Remote-SSH. I can attach the VS Code terminal to the running container on the server but cannot attach the VS Code editor itself to the running container. When I try to do Attach…
Charul Giri
  • 126
  • 5
5
votes
1 answer

Vscode : Open file locally using Remote-SSH through integrated terminal

I am using Remote-SSH plugin for remote development and would like to open a file in the existing editor using an integrated terminal (which is running a remote shell). A similar issue was posted on fit repository but it doesn't seem to work…
Ganesh Gore
  • 113
  • 1
  • 2
  • 8
5
votes
2 answers

How to get rid of vscode remote development?

I'm using VSCode portable for development. Recently, I tried remote development and get confused between local-mode and remote-mode. Every times I try to install a new extension, VSCode try to install it in "remote". I tried to find setting to…
Luke
  • 1,623
  • 3
  • 24
  • 32
5
votes
1 answer

SSH session within SSH session - VS Code

I connect to a server within Visual Studio Code using SSH ("Remote-SSH: Connect to Host..."). When working in the terminal within VS Code, the command code results in opening the file in VS Code of the client (therefore on my screen). Now…
keezar
  • 83
  • 1
  • 4
5
votes
1 answer

Starting vscode directly in remote ssh

I'm using vscode remote ssh heavily and each time, I have to start it regularly and and run the commmand to start a new instance with Remote SSH Is there a way to use some arguments to VsCode shortcut to start directly in Remote SSH mode? Thanks
5
votes
1 answer

How edit files with Visual Code remote extension using sudo

The Visual Code remote SSH extension allows editing any remote file in the embedded terminal just using code which is super useful. However when opening a file with sudo e.g. sudo code /etc/fstabs it returns sudo: code: command not…
pditommaso
  • 3,186
  • 6
  • 28
  • 43
5
votes
0 answers

How do I permanently install VSCode Python plugin on remote ssh

I have installed the Microsoft Python plugin on my local VSCode Insiders and haven't had any problems with it. But every time I open up a remote ssh session, I have to reinstall all of my plugins ("Install on SSH: localhost") and reload the session.…
jss367
  • 4,759
  • 14
  • 54
  • 76
5
votes
2 answers

How can I install a VSIX file based extension in a remote container via devcontainer.json?

In the context of VS Code Remote Development inside a container I can see that extensions to install can be specified in the devcontainers.json file, as shown in the samples in the vscode-dev-containers repo, like this example: "extensions": [ …
qmacro
  • 3,025
  • 23
  • 33
5
votes
0 answers

Failed to parse remote port - vscode using ssh

I get the following error trying to use vscode-remote using ssh. I think this is related to escape codes.. but I don't know how to resolve it. > Starting agent... > Waiting for server log... > [?1034h > > * > * Reminder: You may only use this…
pyrookie
  • 400
  • 3
  • 11
5
votes
7 answers

Is it possible to use kerberos authentication with visual studio code remote?

We use kerberos authentication for connecting to our on-prem computing environment. I'd like to use visual studio code remote to do development directly on that server. Based on this section in the vscode remote documentation, it seems like it's…
Zane Dufour
  • 830
  • 1
  • 9
  • 19
5
votes
1 answer

How to change default volume mount in VS Code Remote Container?

How to change the default volume mount for the folder opened in the container? I have tried in my Dockerfile: RUN mkdir /root/myproject WORKDIR /root/myproject As well as my .devcontainer.json: { "name": "My Project", "dockerFile":…
ains
  • 1,436
  • 4
  • 18
  • 33
4
votes
0 answers

Unable to connect vscode to remote server with ssh, gives error: Failed to parse remote port from server output

I am able to login to remote service using ssh form terminal but not from vscode. Earlier it was giving me following error: Failed to parse remote port from server output Refering to this post, I deleted .vscode-server using terminal. But, no…
MsA
  • 2,599
  • 3
  • 22
  • 47
4
votes
0 answers

Remote tunnel setup stuck on github signin

I would like to preface that I am new to stack overflow as a whole and I hope this is the proper way to ask questions here, if not please let me know how I can improve. Before I get to the main problem I should address my end goal as I am not…