Using a remote server in a Visual Studio Code terminal?

I recently switched to using Visual Studio code from Sublime Text and asked a question about terminal functionality. It looks like the "Integrated Terminal" that appears below is mounted on the local file system out of the box.

What am I interested in if I can replace this local terminal with a remote server? I have a host name, port and login credentials, and I would like you to be able to move the file system on our remote server (for example, using MobaXterm, PuTTy, etc.), and then open the code files in Visual Studio Code instead of vim or emacs. Is it possible?

Thank!!

+4
source share
1 answer

UPDATE: I figured out how to install this in VS code.

You can download git bash online and it will be installed on your local computer. In VS Code, you can then Ctrl + Shift + P and type "Open User Settings". In the right pane, add this setting:

enter image description here

This will replace the default built-in terminal in VSCode with the git bash CLI client that was just installed in the location in the screenshot above. Now that your local file system is installed in VScode, you can do:

ssh username@hostname -p <port>

+8
source

Source: https://habr.com/ru/post/1677921/


All Articles