The Remote - SSH extension is very useful for allowing you and edit files remotely.

One awesome feature is allowing you connect to a remote host from the terminal.

code --folder-uri vscode-remote://ssh-remote+<FQDN><RemoteDirectory>
Enter fullscreen mode Exit fullscreen mode

This allows you to create a simple alias to launch VSCode to connect directly to that host.

alias devhost="code --folder-uri vscode-remote://ssh-remote+my.example.com/home/example"
Enter fullscreen mode Exit fullscreen mode

One drawback is you can't currently use hosts from your .ssh/config as of now but I've raised a ~~ feature request ~~for that.

Update: you can use aliases from your .ssh/config, either it was bugged or fixed 😅.