It would be great to be able to open a remote VS code session from console using a special URIs, e.g.:
$ code --folder-uri ssh://server-name/folder-on-server
Is there anything like that on the roadmap?
+1, am I mistaken or when you connect to a SSH remote it goes by default to ~/, and there is no way of configuring this?
We are also looking forward to this feature while trying to integrate remote development into our workflow.
In our scenario, we would like to create one remote workspace for every feature/fix branch. And thus we'll have other tools to manage the lifecycle of those workspaces and providing links to open in VS Code.
And it would be awesome to have VS Code pulled up directly into a remote folder by a link (not sure if it's already working for local folders).
Seems like it's already working:
code-insiders --folder-uri "vscode-remote://ssh-remote+host/path/to/project"
https://github.com/microsoft/vscode-remote-release/issues/505
@vilic, exactly what I was looking for! Thanks!
Can I bother you with a bit more details?
I have tried this (IP obfuscated):
code-insiders --folder-uri "vscode-remote://12.23.45.67/home/myuser/dev/"
but I get
Failed to connect to the remote extension host server (Error: Port should be > 0 and < 65536. Received NaN.)
Ah! So the syntax is actually:
code --folder-uri "vscode-remote://ssh-remote+12.23.45.67/home/myuser/dev/"
(It wasn't obvious to me that ssh-remote+ was a verbatim part of the command.)
Nice!
UPDATE: yes, that part was easy to miss :)