user4493177
user4493177

Reputation: 790

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.

Upvotes: 9

Views: 8284

Answers (2)

Mansour Alnasser
Mansour Alnasser

Reputation: 5030

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

Upvotes: 6

Maarten Wolzak
Maarten Wolzak

Reputation: 2681

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.

Upvotes: 1

Related Questions