Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PhpStorm ftp without downloading all files

Tags:

phpstorm

ftp

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.

like image 465
user4493177 Avatar asked Apr 28 '15 11:04

user4493177


People also ask

How to download files and folders in PhpStorm?

For downloading files and folders, PhpStorm supports only the manual mode. PhpStorm shows the logs in the File Transfer tool window ( View | Tool Windows | File Transfer ).

How do I view the deployment logs in PhpStorm?

PhpStorm shows the logs in the File Transfer tool window ( View | Tool Windows | File Transfer ). In the Project tool window, right-click a file or folder, then select Deployment | Upload to from the context menu, and choose the target deployment server or server group from the list.

How do I create a remote root folder in PhpStorm?

On the Choose Remote Path page of the wizard, select the folder and click on the toolbar or choose Project Root from the context menu. PhpStorm marks the selected folder with the icon. Under the project root, specify the folders that you do not need downloaded.

How do I turn off automatic upload in PhpStorm?

From the Upload changed files automatically to the default server list, choose when you want PhpStorm to upload changed files: To upload any manually or automatically saved file, choose Always. To upload only manually saved files, choose On explicit save action. To suppress automatic upload, choose Never.


2 Answers

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

like image 130
Mansour Alnasser Avatar answered Oct 24 '22 13:10

Mansour Alnasser


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.

like image 1
Maarten Wolzak Avatar answered Oct 24 '22 11:10

Maarten Wolzak