PhpStorm Save and Upload on ctrl+s
Hey Everyone, I have been enjoying learning laravel and the videos on this site and I notice that there are many people on this site that use PhpStorm. I have been using PhpStorm for a while now and one thing that I have been trying to figure out is the save and upload through ftp and how it saves all of the changed files I have open which is something that I would like to prevent if possible. If anyone has any suggestions or if this maybe doesn't belong on this forum please let me know.
The one thing I have thought about doing would be to just have one file open which I think would work the way I want it to, but if there is a way to have multiple files open and only save the currently visible tab that would be great.
FTP? Do you download the whole project or something?
PHPStorm does live editing?
@Ozan thanks for those links I am going to check them out.
@bashy When I create a new project the way the company I work for handles most of their projects is they use a dedicated development server and when there is a new project we store our work there so when I work on something new I create a new project in PhpStorm and I will upload all of the files there to that site. When I do work on something that is already live and we are just adding something to it I will create a new project in PhpStorm and then download any folders/files I need to look at, and I will create a separate folder on the server to do my work in and then when I am finished I will merge that back into the live folders. This is usually only for small things though.
I did find a solution to my problem though I changed the keymap to the upload to.. command so now I can upload just one file.
Ah I see, do you need a whole IDE to edit small things? I normally open it up in Sublime to do things like that. Never used FTP with PHPStorm so I'm not sure.
I like sublime text as well and I use it sometimes, but I feel more comfortable and at home in Phpstorm. Do you use any ftp program with sublime?
The latest PHPStorm EAP allows live edit of remote files. You are using version control or everyone is FTPing to a dev server??? That sounds dangerous. Go to project settings CMD + , on MAC or CTRL + , on Windows.
Select deployment Options: You can turn off overwrite newer files. Its ON by default. You can turn on prompt when overwriting local files.
I just started using lastest EAP, its finally stable. I normally use 8.0.3.
I use Transmit with Sublime (Mac), if not maybe try PHPStorm 9 (EAP) as stated above.
Currently I am using version 8.0.3 as well and I do use the notify when file on server has changed option. The EAP release sounds interesting and I think I will check it out and I am going to turn off the overwrite setting. Most people where I work use sublime and textmate to edit files with transmit. Thanks for the advice I am always looking for ways I can improve myself and my work habits.
@bashy Yes I love Transmit. I use it to update my AWS server. Has anybody tried Capistrano? Read about it modern PHP.
@jimmck I couldn't find how to add a remote ftp account in the latest Phpstorm 9 EAP. I try to create a new project and there is no option for Remote Ftp edit. It would have been great, if you could upload screenshots if it is too complex. But it is supposed to be easy.
You are doing it wrong.
You should do development locally, commit in git and use git to deploy your code.
@yadakhov In most cases, yes. I use FTP/Sublime for changes on sites without git.
Hi, Can someone show me how to embed screen shots? Another forum member sent me info, but I do not get the Syntax.
Thanks, Jim
@SNaRe To setup FTP. Do
- Select PHPStorm EAP Menu -> Preferences
- On Left Hand Menu, select Deployment
- Right Hand of screen you will see a Dialog.
- The default setting for the Drop Down in Connection tab is Local Folder - Mounted Drive.
- Change that to FTP and enter your server settings. Use FTPS if needed.
- The mappings tab will let you set directory locations.
- Under Deployment is a Sub Dialog named Options for file transfers.
When I figure out how post a screen shot I will :)
just learn laravel, love coding on PHPStrom where on local development.
i use Sublime + SFTP on all remote server development :)
@jimmck I added but afterward how will I reach to remote host files without downloading? Still I couldn't find any new buttons that makes it happen.
@SNaRe This time diff is rough. To edit a remote file.
- Create your FTP profile and connect to remote server.
- Once connected go to Tools->Deployment->Browse Remote Files
- You will get a window of your default directory.
- Double click on file and it will open.
- The banner above the file will say File is identical to remote file.
- When you change the file that will change.
- There are toolbar icons to upload the file.
For further Info: http://blog.jetbrains.com/phpstorm/2015/04/remote-edit-in-phpstorm-9-eap/
Jim
Anyone Can you paste screen shots into these posts?
Hi,
Take a look at PHPStorm video tutorials by JetBrains : https://www.youtube.com/playlist?list=PLQ176FUIyIUbfeFz-2EbDzwExRlD0Bc-w
For FTP Stuff: Deployment and Remote Hosts in PhpStorm
Just set server configuration on 'Tools -> Deployment->config' mark as default server. Than check 'Tools->deployment->Automatic Upload'. This is what i use all the time. When a file is saved it will be uploaded automatically. There is also an option to check changes outside IDE and upload. Like when css generated by elixir etc.
Please or to participate in this conversation.