Tools → Deployment → Configuration
填写 FTP host → User name → Password → test connection → OK
Tools → Deployment → Configuration,填写 Deployment path 和 Web Path → OK
Tools → Deployment → Options,Upload changed files automatically to the default server 改成 Always → OK
Tools → Deployment → Browse Remote Host
此时编辑远程文件保存即可自动上传。
参考文献:https://blog.csdn.net/Knight_quan/article/details/51910102