Sometimes we development environment might be on a remote or virtual mahcine and you need to edit files. Of course we can do it with some command-line text editors like vim or nano, but we can also still enjoy of the beauty of an IDE like Atom, SublieText or VSCode.

In this post we are showing how to open any folder on a remote machine using SSH and take advantage of VS Code’s full feature set.

Requirements:

  • Visual Studio Code Remote - SSH Extension

Using the Remote - SSH extension, you can work against a VM with all of VS Code’s productivity features and extensions on your remote machine. You get the full-fledged development experience you know and love in VS Code, no matter where your code is hosted. https://code.visualstudio.com/blogs/2019/07/25/remote-ssh

Source: https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-ssh