如何使用phpStorm从远程服务器删除文件 [英] how to delete files from remote server using phpStorm

查看:456
本文介绍了如何使用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:

  1. 将更改的项目自动上传到默认服务器
  2. 当源项目不存在时删除目标项目

显然,您需要将所有这些选项配置为最适合您的工作流程.

Obviously, you need to configure all those options as most suitable to your workflow.

这篇关于如何使用phpStorm从远程服务器删除文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆