简体   繁体   中英

PhpStorm ftp without downloading all files

I just switched to the php editor PhpStorm. With other editors I have used, editing files through ftp went like this:

  1. Browse the file in the explorer
  2. Open the file in the editor
  3. Make changes
  4. Press save

This would automatically first download that single file and show it in the editor, and then upload that file to the server with the changes.

Now I'm trying to add an ftp connection in PhpStorm, but it immediately downloads all files to my pc. Is there a way to have the workflow I just described on PhpStorm, without downloading the whole server.

There is uncompleted answer for that,

File > New Project from Existing file ... > web server ... via FTP/SFTP/FTPS.

Than fill the forms to the end, The local project on the left will be empty.

chose Tools > Deployment > Browse Remote Host.

This will show the Host files and folders on the right.

Double click to open the file and Alt+Shift+Q to upload it.

Why uncompleted answer? Because when you open multi files and edit some, you will not know which are edited and not uploaded from the unedited files.

-Phpstorm 2016.3.2

Add a File > New Project from Existing file ... > web server ... via FTP/SFTP/FTPS. .
In the last screen, where you set the project root, select the correct folder as project root and also select it as exclude from download

Save your project and you're good to go. No download happens.

Please refer my tutorial which explains how to access remote files using ftp . We can edit the files and automatically upload the files to the server on save.

http://www.pearlbells.co.uk/edit-remote-files-phpstorm/

Main steps :

  • Select File->New project from Existing files
  • Select the checkbox as shown in fig (refer blog for images) and click next.
  • Enter projectname
  • From the dropdown select 'On explicit save atcion'
  • Add new remote server
  • Enter Ftp details
  • Select the remote path.

Refer the tutorial for demo images and explanation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM