code --remote ssh-remote+myserver /path/to/project

Category: Web App Development

code --remote ssh-remote+myserver /path/to/project

Open a project on a remote host in VS Code

Launches VS Code connected over SSH to myserver, opening /path/to/project on that machine with extensions and terminal running remotely. The ssh-remote+ prefix selects the SSH transport, and the host must exist in your SSH config. The Remote-SSH extension handles the connection.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.