Whats the keyboard shortcut to upload the current file I'm working on?
Hello,
PHPstorm is great,
Whats the keyboard shourtcut to upload the current file I'm working on?
I don't want to use automatic upload in this case,
Thanks
Please sign in to leave a comment.
Hi there,
There is none. You can assign any shortcut you wish yourself: Settings | Keymap | Plugins | Remote Hosts Access | Upload to Default Server
Every day I learn something amazing about PHPStorm. Me very happy.
Thank you, it works!
Interesting that also apply to pycharm
When I try to setup the shortcut, it doesn't work. It creates a separate copy like "Windows copy 1 or 2", and doesn't change the setting outside of it.


@Sindhujit Ganguly
That's because you are doing it for a wrong action.
As you can see in my screenshot, the shortcut for "Upload Current Remote File" is also Ctrl+S. I am thinking it has something to do with creating a separate copy "Windows copy 2", when actually "Windows" is what gets actually used. Not sure how to fix that ? Also while changing the default I see a message Ctrl+S is already used and its asking me whether I want to replace the existing one which is to just save, and I click on "Keep". Not sure if that is causing any issues.
@Sindhujit Ganguly
Thanks. I see it now. Somehow I have completely missed that moment in the first place (which makes my previous comment redundant).
It does not matter how many copies of a keymap you have -- only the selected one is used.
It will. By default Ctrl+S is assigned to Save All action.
If more than one action in the same applicable context has the same shortcut, then the IDE cannot guarantee which action will be executed. But it will be only one action called anyway. So in your case it seems that the Upload action most likely is not getting executed at all.
If you want to use Ctrl+S for Upload action(s), make sure to remove that shortcut from other actions. HINT: there is a button next to the local search field (visible on your and my screenshots) -- you can use it to find all actions that have specific shortcut assigned.
NOW THE QUESTION: since Ctrl+S is a default shortcut for Save All action, and you want to use it for Upload while still keeping it assigned to the original action -- what was that for? As I understand you want to have Save the file and Upload under one shortcut (so it does both things)?
If that's the case: better use Automatic deployment, there is an option for that (Upload on Save). Sadly this would not work with Remote Edit files (as it's a remote-only file in IDE eyes: no local copy in the project).
NOTE: the IDE will save the file for you if you invoke Upload action on such a file.