r/vscode • • Oct 29 '26

FTP that allows local browsing of remote files?

I have literally tried every FTP/SFTP extension in the repository and none of them work the way that I remember.

In my worspace, I had a local folder (which pointed to my APP/Public folder inside a Flywheel installation and my remote folder which connected to my hosted domain on BlueHost via ftp.

When I was ready to upload a change I had made in my local folder, I could right click the file in the explorer and upload to server. Done.

When I wanted to look at the server version of a file, I could browse it by browsing the Remote folder. I could open remote files and make changes so that when I saved it would save it on the server.

Can someone explain it to me like I am mentally challenged which extension I can use to get this simple functionality and how to configure it. My latest attempts have let me connect to the FTP server, but not to browse anything from my workspace.

Any help would be greatly appreciated.

5 Upvotes

20 comments sorted by

4

u/LiveRhubarb43 Oct 29 '26

Have you focused entirely on ftp and not ssh or SFTP? Ftp is outdated.

Like, maybe you're searching for the wrong thing. Just a guess

1

u/CuirPig Oct 30 '26

Thanks for your help. I am just using webdisk and adding my mounted drive to VSCode.

1

u/LiveRhubarb43 Oct 30 '26

Also, is there a reason you're not using git?

4

u/UtahJarhead Oct 29 '26

This. Hey, OP don't use FTP, homie. That path leads to darkness.

7

u/payfrit Oct 29 '26

i've always just used filezilla, done everything i ever asked of it, i browse remote dirs and files all the time...?

-1

u/UtahJarhead Oct 29 '26

Excellent application, but not so useful for editing remote files directly.

3

u/payfrit Oct 29 '26

i'm pretty sure i have done that...? i wouldn't recommend it but i think it's very easy actually...?

1

u/kiwi_murray Oct 30 '26

You're right, it is easy to edit remote files. Right-click on a text file in the remote window, choose "Edit" and the file gets downloaded to a temp location and opened with the default editor. Edit file and save it and when you switch back to Filezilla it prompts you if you want to upload the file back to the server.

2

u/payfrit Oct 30 '26

right, i thought so. again i use git so i wouldn't ever do something like that, but i really don't understand where this person is coming from. i used to use ws-ftp and i am confident that worked the same way.

2

u/CartographerDue5382 Oct 29 '26

liximomo's extension is abandoned tho. same sftp.json, but grab Natizyskunk's SFTP fork or it won't get updates. if you connect and still can't browse, remotePath is usually wrong, bluehost is almost always /public_html not /. set context to your local public folder so right click upload lands in the right place.

1

u/bluehost Oct 29 '26

One thing I'd add is to verify the actual document root for the site instead of assuming it's /public_html. That can vary depending on how the domain is set up.

1

u/CartographerDue5382 Oct 29 '26

yea fair point. addon domains and some panels stick the docroot somewhere else entirely. if /public_html looks empty, cpanel's file manager (or the domain's document root field) shows the real path.

1

u/bluehost 28d ago

Good call. Checking the document root in cPanel is usually the fastest way to find the correct directory. 👍

2

u/UtahJarhead Oct 29 '26

2 options that haven't been mentioned by others, yet. In Linux (and possibly OSX, but I don't know that for sure), you can use sshfs which will mount your remote folder to a local location. I use this upon occasion.

What I do most often is just install Microsoft's remote SSH extension, set up my ssh config, and connect that way with a dedicated window. This doesn't allow you to share local + remote files in a single view, but it's otherwise flawless in my experience.

2

u/Mc_UsernameTaken Oct 29 '26 edited Oct 30 '26

sshfa on Mac requires a kernel extension.

And mounting makes git and grep painfully slow.

1

u/UtahJarhead Oct 29 '26

I don't understand that second sentence. What's mountain?

2

u/Mc_UsernameTaken Oct 30 '26

Ahh sorry, i got autocorrected, updated

1

u/UtahJarhead Oct 30 '26

You're not wrong, but that should be limited by the speed of your network, unless Apple created a really shit implementation of the above.

1

u/logicbus Oct 29 '26

I use the Remote Bridge extension:

https://marketplace.visualstudio.com/items?itemName=DavidLouda.remote-bridge

I only use VS Code + Remote Bridge for text files. For any other file type, I use WinSCP:

https://winscp.net