vscode-remote

How to use vscode remote containers with Docker Toolbox (Windows 7)?

做~自己de王妃 提交于 2020-05-14 08:51:16
问题 I use Windows 7 and can't install Docker for Windows, so I use Docker Toolbox. Docker Toolbox is not supported by Microsoft Visual Studio Code for Remote Container Development. But I need to use this functionality with my docker toolbox. There is an issue on Github not solved yet https://github.com/microsoft/vscode-remote-release/issues/95 回答1: You need to start your docker-machine. Need last version of vscode (1.40.2+) In your .devcontainer.json you can overwrite the workspace mount volumene

Remote VS Code development with code-server

可紊 提交于 2020-04-17 22:20:07
问题 I have deployed the image https://hub.docker.com/r/codercom/code-server which is remote VS code in Azure containers. But now if I want to open any Project(Eg: Angular Project with node and angular cli setup)in that VS Code and develop remotely how can I achieve this. 回答1: For your requirements, I think there are two ways to achieve it. One is that copy your project to the image and then deploy the image to the ACI. Or copy the project after deploying the image to ACI. Another is that mount

VSCode in WSL: how to sudo a root file so I can edit it

大城市里の小女人 提交于 2020-02-24 10:04:20
问题 WSL v.1 -- VSCode v1.40.1 (using 'Remote - WSL' extension 40.3) How to open a root-owned file for edit using sudo and VSCode? (without running as root) If I open a root file without sudo , I can't edit it (expected): $ code /etc/profile.d/custom-profile.sh $ But, if I try to sudo code the file, I get: $ sudo code /etc/profile.d/custom-profile.sh [sudo] password for xxxx: sudo: code: command not found Binarify's answer below shows that I can switch the default user to root , but I definitely

SSH with VSCode without internet

孤人 提交于 2020-01-10 10:43:09
问题 Is there a way to connect without the internet? download vscode server files from another system and copy to host? i read this but i cant connect server to internet,They do not let me do this. 回答1: When you connect to a host it executes a bash script that wgets or curls a tarball and extracts it in a directory in your home directory. Here's an offline workaround. Attempt to connect, let it fail On server, get the commit id $ ls ~/.vscode-server/bin 553cfb2c2205db5f15f3ee8395bbd5cf066d357d

How to setup powerline-go in vscode running in WSL2 (Ubuntu)

ⅰ亾dé卋堺 提交于 2019-12-25 01:38:18
问题 These are the contents of my ~/.vscode-server/server-env-setup function _update_ps1() { PS1="$($GOPATH/bin/powerline-go -error $?)" } if [ "$TERM" != "linux" ] && [ -f "$GOPATH/bin/powerline-go" ]; then PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND" fi ... gives this error [2019-12-10 13:49:39.763] /mnt/c/Users/cber/.vscode/extensions/ms-vscode-remote.remote-wsl-0.40.3/scripts/wslServer.sh: 1: /home/cber/.vscode-server/server-env-setup: Syntax error: "(" unexpected [2019-12-10 13:49:39.805] VS

Git isn't working as expected with vscode remote ssh

断了今生、忘了曾经 提交于 2019-12-11 18:05:21
问题 I recently tried out vscode's remote SSH feature. It was super easy to setup and connect to a remote server. I opened the editor to a directory that is a git repo and expected to have the default git features working like normal. But if I edit a file, vscode isn't showing the visual indication that there is a modification in the file. And the git tab doesn't show the change. I can open the terminal in vscode and run git status and I do in fact see the change so I know that's actually editing

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

五迷三道 提交于 2019-12-11 03:19:57
问题 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": "Dockerfile", "workspaceFolder": "/root/myproject", } But the folder is still being mounted on /workspaces/myproject within the container. 回答1: Update The upcoming vscode-container release should support using workspaceFolder as you show. See this issue for

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

天涯浪子 提交于 2019-12-08 13:52:35
问题 How do the change the shell used for VS Code's integrated terminal when I connect to an remote ssh workspace? 回答1: You can use remote setting to change the shell for each host. To do this, open the remote workspace in VS Code and run the Open Remote settings command: Set terminal.integrated.shell.linux to point to your shell and save the file: "terminal.integrated.shell.linux": "/usr/bin/fish" The remote settings apply to all workspaces you open on a given host, but must be configured for

How do I use other port to connect with Remote SSH VS Code extention

心已入冬 提交于 2019-12-01 06:42:06
问题 I discover Visual Studio Code Remote Development Extension Pack. I wanted to try it, but my remote is on a 2222 port. I can correctly connect with Putty and my port 2222, same on my Linux laptop with ssh command. What is the correct config to use Code Remote via SSH with other port ? Thanks Host my-remote-connection HostName mydomain.name User myusername 回答1: Just add Port to your config like: Host my-remote-connection HostName mydomain.name User myusername Port 2222 来源: https://stackoverflow