I realize sshfs provides something similar, but it has a few rough edges compared to the vs code implementation.
I realize sshfs provides something similar, but it has a few rough edges compared to the vs code implementation.
Emacs supports editing remote files via ssh, ftp, or scp; one simply refers to filenames like: /ssh:host:filename or /ssh:user@host:filename. It's pretty simple and transparent. One can browse remote directories, etc.
Likewise editing a local file under a different user id is also supported using paths that look like /sudo::filename.
See section 18.5 Remote Files in the Emacs user manual[1].
[1] https://www.gnu.org/software/emacs/manual/html_mono/emacs.ht...
Something I have yet to try is using an lsp server with a remote project. I'm not sure how some, like the rust lsp, that need the whole project (at least w/ emacs it doesn't yet support isolated files), would work.