{% include “docs/development/editors/vscode/_common/_vscode_header.md” %}
VS Code allows you to open a remote folder on any virtual machine, container, or environment with a running SSH server, allowing developers to interact with files and folders on the remote filesystem. Remote workspaces are helpful when using a separate environment to edit, build, or run Fuchsia.
Configuring remote workspaces involve the following steps:
Before you start, complete the following tasks:
To connect to a remote host for the first time, install Microsoft’s Remote SSH Extension in VS Code:
In VS Code, launch Quick Open by running CMD/CTRL + P
.
Paste the following command in the text prompt and press enter:
ext install ms-vscode-remote.remote-ssh
After installing the SSH extension, connect to your SSH environment:
Press F1
or CMD/CTRL + SHIFT + P
to open Command Palette.
Type in the field, Remote-SSH: Connect to Host…
and press enter.
Type in the domain name of your SSH environment and press enter:
{{ '<var>' }}username{{ '</var>' }}@{{ '<var>' }}hostname{{ '</var>' }}.com
If VS Code cannot detect the type of server, select the type manually.
After connecting, the bottom left status bar displays your current SSH session.
To close the connection with the remote host, you can either:
For additional support, VS Code provides official documentation{: .external} for troubleshooting scenarios.