如何使用phpStorm从远程服务器删除文件 [英] how to delete files from remote server using phpStorm
问题描述
因此,我已将远程服务器添加到phpStrom中,并且可以在那里更改文件. 但是,如果我删除文件,它们只会从我的计算机上消失,而不会在服务器上消失. 如何使用phpStorm从远程服务器删除文件?
So I've added remote server to phpStrom and I can change files there. But if I delete files they disappear only from my computer not on the server. How to delete files from remote server using phpStorm?
推荐答案
要手动从远程位置删除文件,请使用 Remote Host工具窗口(或Tools | Deployment | Browse Remote Host
(如果看不到)-浏览并删除所需的任何文件.
To manually delete files from remote location -- use Remote Host tool window (or Tools | Deployment | Browse Remote Host
if it's not visible) -- navigate and delete any file(s) you want.
要使远程主机与本地主机保持同步(即在删除本地主机后立即删除远程文件),您需要在Settings | Deployment | Options
中启用自动上传功能,尤其是:
For keeping your remote host in sync with local (i.e. to delete remote file as soon as local gets deleted as well) you need to enable automatic upload in Settings | Deployment | Options
, in particular:
- 将更改的项目自动上传到默认服务器
- 当源项目不存在时删除目标项目
显然,您需要将所有这些选项配置为最适合您的工作流程.
Obviously, you need to configure all those options as most suitable to your workflow.
这篇关于如何使用phpStorm从远程服务器删除文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!