Sublime文本sftp在保存时停止上传php

时间:2016-12-27 20:13:34

标签: file-upload sublimetext2 sftp

Sublime(2)最近停止了上传保存。它正在工作,突然停了下来。 虽然这个问题似乎仅限于php文件。

这是我的sftp-config供参考:

"type": "ftp",

"save_before_upload": true,
"upload_on_save": true,
"sync_down_on_open": false,
"sync_skip_deletes": false,
"sync_same_age": true,
"confirm_downloads": false,
"confirm_sync": true,
"confirm_overwrite_newer": false,

"host": "XXX",
"user": "XXX",
"password": "XXX",
//"port": "22",

"remote_path": "/XXX/",
"ignore_regexes": [
    "\\.sublime-(project|workspace)", "sftp-config(-alt\\d?)?\\.json",
    "sftp-settings\\.json", "/venv/", "\\.svn/", "\\.hg/", "\\.git/",
    "\\.bzr", "_darcs", "CVS", "\\.DS_Store", "Thumbs\\.db", "desktop\\.ini"
],
//"file_permissions": "664",
//"dir_permissions": "775",

//"extra_list_connections": 0,

"connect_timeout": 30,

如果我手动点击上传,一切正常,但upload_on_save似乎被忽略了?

1 个答案:

答案 0 :(得分:0)

upload_on_save仅适用于项目目录

您需要打开侧边栏,将sftp-config放入某个文件夹并将此文件夹添加到侧边栏

然后右键单击文件夹并选择SFTP / FTP>浏览远程..