microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.36k stars 28.61k forks source link

Add FTP Syncing #13643

Closed ghost closed 6 years ago

ghost commented 7 years ago

Please, I would be grateful if you were to add FTP uploading/downloading from VS code, I use VS 2015 but if you add this, I would immediately switch.

I think a lot of people would like this feature.

Sincere thanks.

ggregoire commented 7 years ago

2 extensions provide what you are asking for:

Hope it helps you.

joaomaridalho commented 7 years ago

None of the plugins compare to a native FTP Solution like Netbeans, VS etc...

LawJolla commented 7 years ago

@joaomaridalho agreed. I use tired old Coda to deal with remote files for its FTP client. Many of us don't want to sync files -- we want to log on to a remote server and edit them on the server.

joaomaridalho commented 7 years ago

@LawJolla I love VS code but it's one major deal breaker when you use ftp alot, when I'm developing electron applications VS code is simply the best tho

LawJolla commented 7 years ago

@joaomaridalho Good news... the docs are horrendous, but the ftp-simple package does what I (and I think you) need. It looked to be a synchronizer, but it allows server editing and saving. Give it a try and let me know -- I'd be surprised if it didn't work for you. https://marketplace.visualstudio.com/items?itemName=humy2833.ftp-simple

joaomaridalho commented 7 years ago

Thanks @LawJolla I will look into it

technbuzz commented 7 years ago

@ggregoire for some reason these two packages slow down my VSCode. So the only way to go is to wait for built support.

realeeh commented 7 years ago

I hope there will be a native, built-in FTP feature with multiple servers (selectable default one as well) and directory mapping (so I don't have to browse to which folder I want to sync my file in the project).

Something like in PHPStorm. Currently this is the only feature which holds me back from using VSCode at work.

josemi-ca commented 7 years ago

+1

This was one of the most requested features on UserVoice: https://visualstudio.uservoice.com/forums/293070-visual-studio-code/suggestions/7752729-ftp-editing

ghost commented 7 years ago

Testes ftp-simple and ftp-sync. It's ok for automatic file upload on save, which is a good time saver.

But I would love to see a ftp browser on the explorer sidebar, that allow me to quickly pick a file on the remote server and edit it. which is something I do everytime in my job, as a lot of web developpers.

When you use CMS like drupal, wordpress, or magento, you just don't want to sync the whole project of several thousand of files in order to make minor modifications...

liambaloh commented 7 years ago

The two suggested plugins break endlessly and hang on websites with lots of files, fail to maintain sessions, don't upload reliably, etc. They are a cause of a lot of frustration. A native implementation of FTP file download/upload (or a reliable plugin) is the only thing keeping me from moving to VS Code as my main scripting tool.

Ideally, I'd like to have a remote file browser, which only ever fetched the file and folder names contained in the currently selected remote folder (not the whole file structure) and only one level deep - so it would not fetch the file and folder names of the subfolders in the currently selected folder until the subfolder is selected. On double-click it would download the clicked-on file from the server and on save it would upload it.

VaclavElias commented 7 years ago

+1

emkographics commented 7 years ago

+2 This would be deal breaker. I'm trying to stop using coda as i keep going back to it due to the remote ssh folder view that allows direct editing on the server.

LawJolla commented 7 years ago

@emkographics Agreed. That's the only reason Coda is still on my hard drive. Their FTP implementation is perfect. (The text editor... well, it's fine for 2007 🥇 )

ArkhipovK commented 7 years ago

+3 The ftp-explorer is indispensible. Also as password hiding (inside config) and multiserver manager.

ghost commented 7 years ago

+1 vote for this. Even if there are external plugins that provide FTP syncing, a good FTP explorer is missing (same than the file explorer, but remotly) and I'm not sure if the VS code architecture can allow external plugin to implement that.

realeeh commented 7 years ago

Regarding FTP deploy/download, I suggest using VS-Deploy

ghost commented 7 years ago

There is no remote file browser like the explorer sidebar in VS-Deploy

liambaloh commented 7 years ago

Here is a visual representation of precisely how I would like this to work: http://l1m.eu/f0uv2qm3 (video)

I've gone back to Notepad++ as a plugin for it adds precisely the capability I want and that's worth more to me than the benefits VS Code has over Notepad++.

Fire-Brand commented 7 years ago

+1

yolo2013 commented 7 years ago

+1

yolo2013 commented 7 years ago

@realee94 vs-deploy is so sloooooooow..... coda 2 and Webstorm is better than all vs code plugins now.

PS:It gonna be fine when I set checkBeforeDeploy to false.

pwwang commented 7 years ago

+1 I switched back to KomodoEdit unless this feature is added.

fulldecent commented 7 years ago

I use Atom. If VS Code can successfully implement this feature (which has only been done correctly a few times in the history of all text editors) then I will switch.

jens1o commented 7 years ago

Well, since there is a new api, it can be better integrated as an extension.

fulldecent commented 7 years ago

@jens1o Would you be able to provide insight on which new APIs would enable @balohmatevz's vision above (https://github.com/Microsoft/vscode/issues/13643#issuecomment-291084609) to be built?

Everyone in this discussion has probably suffered through second-class remote file editing a la Atom and Code. If a new API allows this to be done, which has never been done before, then maybe people will contribute to a bounty to get it done.

jens1o commented 7 years ago

https://github.com/bpasero/vscode-ftp-example Extensions are now able to add a new tree to the sidebar

Screenshot here: https://github.com/Microsoft/vscode/issues/26948#issuecomment-303036936

emkographics commented 7 years ago

@fulldecent what is your issue with Atoms remote file editing? The Remote-FTP package looks promising. I've just installed it and will try using it. I'd like to know what issues you were having with it since I'm fairly new to it.

fulldecent commented 7 years ago

Thanks for the survey. The issue it it requires setup:


https://atom.io/packages/remote-ftp

Getting started

Instead I am hoping for File->Open->Network Folder and then you type in sftp://root@server:/var/www and then it just works.

Currently I pay Panic $50 for that convenience and I get their abandonware Coda app. Panic makes it look good. And Coda makes it very clear that you are getting first-class support for SFTP not some afterthought.

pwwang commented 7 years ago

@fulldecent You would like to try Komodo Edit, which does a good job in opening remote folders, and it's free.

fulldecent commented 7 years ago

@pwwang Very nice, thank you!

Qibbles commented 7 years ago

Atom just feels really sluggish to me, but remote-ftp did what I needed with it's remote file explorer. If VSCode has support for that, it'd be perfect!

rtpm commented 7 years ago

+1

JulianBerger commented 7 years ago

+1 , also using atom because of remote-ftp

ghost commented 7 years ago

I think we need something better then just built in ftp. For example it can be somehing like built-in deploy manager with support of ftp , sftp, other managers, remote edit files on server, downloads from server and other wide options set. Making all two using the extension is good if extension is very good and give all features and if target which extensions provide is not so popular to include it. The best approach is maintaining support of ftp as extension but with support of it from core team and bundle it with VSCode

Qibbles commented 7 years ago

Actually I've just found out that ftp-simple for vscode has a beta feature called remote working woe something like that that works pretty well so far for remote file explorer and remote editing. Was a bit confusing when I was trying to set it up but now it works quite well and feels snappier than atom ever would! Give it a try!

Fire-Brand commented 7 years ago

@Qibbles, there are still many issues with ftp-simple that could be solved with a native ftp solution from the VSCode team. For exmaple - i'm unable to connect to any remote server on my Macbook with MacOS 10.12.4 Hopefully this feature will come soon....

Edit: SOLVED here

pwwang commented 7 years ago

@Fire-Brand Yes, you are right. Here is another issue. A watch function is definite necessary. I pulled files from github on the server, but ftp-simple did not sense that. I modified files in vscode and all codes were messed up, as the files being opened in vscode were not updated. I was really frustrated. This happened to me twice!

sonyarianto commented 7 years ago

SFTP built-in is a must to increase VSCode credibility, since this feature is very importance puzzle piece on software development. I like the SFTP plugin in Sublime Text.

ghost commented 7 years ago

Native ftp solution is very good idea, but i think it would be better to move this feature to next milestone, because this milestone is near to its close and ftp need to big time for solid implementation

pwwang commented 7 years ago

@NickolasGame Where can we find the milestone information? Thanks.

ghost commented 7 years ago

What did you mean "the milestone information"

pwwang commented 7 years ago

@NickolasGame I mean what's included in the plan and when a milestone closes, and what will be included and when for the next one.

vfhky commented 7 years ago

we can explore or edit remote files just like in our local windows machine. sftp

elabx commented 7 years ago

Pus one on this, I'd suggest taking a look at how easy emacs does this, you just write the address and boom you are connected on ssh or ftp. Then you can just bookmark the address and you can connect directly to a directory i see this working amazingly on the search bar. It would be a killer feature for VS Code.

jpldev commented 7 years ago

+1

architchandra commented 6 years ago

+1

jiamings commented 6 years ago

+1

javicorvus commented 6 years ago

+1

Seijinx commented 6 years ago

+1