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

How can I jump to function definitions using VS Code in SSH remote development

Okay I am new to Embedded Linux development. Right now, I am trying to setup the development environment as efficiently as possible. I have a python code running on a lightweight Linux based device, that is located remotely So far I was able to…
6
votes
0 answers

vscode - disable all file watching for remote

I'm trying to use VS:Code's remote workspace feature on a server that I don't have root access to. I'm limited to 8192 watchers, and VS:code uses all of them because there are lots of files in my build directories. I don't really need file watching…
Conrad
  • 239
  • 2
  • 8
6
votes
0 answers

Run VSCode remote-ssh from within WSL to another Remote GCP instance

I have a windows 10 desktop which is heavily protected by the Admin and have Ubuntu 20 WSL installed in my windows 10. Objective I want to run VScode remote-ssh from within WSL to my GCP instance which is a high configuration machine for code…
6
votes
1 answer

VSCode DevContainers: How do you mount a home file on both MAC and Windows

I am using VSCode devcontainers, how do you have a mount section in the devcontainers.json with that is compatible for both windows and MAC? I have a problem accessing the source=... section under the "mounts" section. // For format details, see…
vfrank66
  • 1,318
  • 19
  • 28
6
votes
0 answers

VS Code with WSL now opens the browser.sh file instead of launching the browser

The problem: when running a React project (i.e. npm run start) with WSL from the terminal in VS Code, the file "browser.sh" is opened in a new window. The browser is no longer launched. This is a new behavior with version 1.52. The release notes…
Dan J.
  • 71
  • 3
6
votes
1 answer

Avoid VS Code Remote having to reload window after Mac goes to sleep

When connected to a remote SSH host and my Mac goes to sleep after a few minutes of inactivity, I have to reload the whole window to re-establish a connection when I return. What's the least energy-inefficient way of avoiding this wait-time…
Janosh
  • 3,392
  • 2
  • 27
  • 35
6
votes
2 answers

Remote SSH doesn't open file from terminal

Version of VS Code: Visual Studio Code 1.48.2 What type of remote connection: SSH operating system: Ubuntu 16.04.7 LTS (Xenial Xerus) remote operating system: Ubuntu 16.04.7 LTS (Xenial Xerus) I have a remote SSH connection set up between two…
6
votes
3 answers

Why asking password VS Code Remote SSH plugin if I use public key to authenticate?

I just started using Remote - SSH (ms-vscode-remote.remote-ssh) plugin. I put this code into settings.json: "remote.SSH.remotePlatform": { "myserver": "linux" } In the config file: Host myhost HostName myhost User root …
netdjw
  • 5,419
  • 21
  • 88
  • 162
6
votes
0 answers

Remote container mount network share from Windows host

Problem Description I would like to specify a mount to a network share from the devcontainer.json "mounts" property so that I can write scripts that pull files from that network share and can run on multiple host machines. I can see that VSCode…
6
votes
1 answer

vscode with ubuntu + wsl 2 never prompts for gpg passphrase even after configuration just "failed to write commit data"

I'm trying to get vscode to prompt for passphrase when trying to commit as it does in windows OR at least make the time between having to enter the passphrase a lot longer. I'm using latest on ubuntu + WSL 2, both installed today. GPG works in the…
6
votes
8 answers

VSCode Remote SSH to Linux - Connecting was canceled

I am trying to connect from my Windows 10 machine to my Ubuntu Linux server (16.04.6) using Remote SSH. To do this I've read many different tutorials but have no success. I am able to connect from my Windows 10 command prompt to the Ubuntu Linux…
clex
  • 465
  • 2
  • 7
  • 19
6
votes
3 answers

How to set include paths within Windows Subsystem for Linux in Visual Studio Code

at the moment I am using a windows machine and wanted to try out windows subsystem for linux(wsl) for c++ development. Visual studio code(vsc) provides a neat extension for working on the subsystem that works quite well. One thing I could not get to…
6
votes
4 answers

How to attach a remote container using vscode command line?

I want to use a command line tool to attach a remote container. I tried this command (see below), but it's of no use. Does anyone know the correct command? code --folder-uri…
xs233
  • 61
  • 1
  • 2
6
votes
0 answers

How to pre-index a large C project for VSCode C/C++ Extension

We have a C codebase which is around 9GB in size! It takes a lot of time (hours) to create the IPCH database/files and hence the intellisence doesn't work so well for the first few hours of the project. Is it possible to index the whole project…
Vivek Jha
  • 1,520
  • 3
  • 16
  • 26
6
votes
2 answers

Is it possible to create a proxy in Remote-SSH Visual Studio Code?

I need to connect via REMOTE-SSH in Visual Studio Code to a machine with ssh but from a specific machine in which I have previously connected through ssh to. I can connect to the first machine with no problem, the problem is when I am logged in the…
MarinerZZ
  • 332
  • 1
  • 3
  • 13