vscode-sftp
vscode-sftp copied to clipboard
Edit remote file without destroy local
When "Edit in Local" web.config in remote view, it's seems dengerous to destroy local environment, because it's normal both different local and remote.
I recommend is adding a menu "Edit only remote" or similar menu on remote view, and it make a few developer happy, thank you.
+1 On that!
My story:
I have an ssh-connected VCode right for our server, so that I can have easy access to Terminal and files on the same time. Since I am sys-admin root, I don't want to be openning and closing "project-folders" all the time, so I open VCode at root. Indexing of files is disabled cause that wreaks havoc on the server. (I can open files with Ctrl-P with EXACT path) So I though, hey! I will use SFTP for exploration! It does not index! So I SFTPed localhost ... with remote path / .... in the ssh-ed VCode where "local" means "remote" ... :D ....
BUT when I tried to edit, it stated "Read only", then I tinkered the setting mentioned, tried to edit, and POOF!!! It tried to overwrite the file it was trying to read from, and: FILE ERASED!!! O.O ... So I had to set a "context" to "download" the "remote files" which are actually on the same server/computer, and now whenever I edit files, it copies them to the "context" folder.... not so good.
Hint: The VCode "Remote-SSH" though has the functionality to edit files without copying them locally (maybe it copies to temp files, dunno, but certainly not actual paths).
That would be EXTREMELY useful, and lines up with what my friend @fujitatakesh suggested.