Using sublime sftp plug-in, directly save the CentOS server Nodejs file, so debugging is very convenient, of course, to match up
Always use file---sftp/ftp, Setup server/browse Server, which keeps files in c:\users\ "username" \appdata\local\temp\sublime-sf Tp-browse-1465899934\ "The path above the CentOS service"!
Drag and Drop sublime-sftp-browse-1465899934 folder into the sublime inside, has been used in this way in the operation, has been peaceful, each time the file has been modified, and then CTRL + S automatically upload the server, and then ..., The server is automatically accessed!
Suddenly the desktop management software automatically emptied the junk files, suddenly found that my local code files are wood! There is no way to rearrange, so in the desktop created the Nodeserver folder, and then drag this folder into the sublime, and then set SFTP/FTP,
The entire Sftp-config.json file is as follows:
{//the TAB key would cycle through the settings when first created//Visit http://wbond.net/sublime_packages/sftp/ Settings for help/SFTP, FTP or FTPS"type": "Sftp", "save_before_upload": True, "Upload_on_save": True, "Sync_down_on_open": true, "Sync_sk Ip_deletes ": false," sync_same_age ": True," confirm_downloads ": false," Confirm_sync ": false," Confirm_overwri Te_newer ": false," host ":" Www.xxxx.club "," User ":" root "," password ":" Xxxxxxxxxx ","Port": "22"," Remote_path": "/home/testen/nodeserver/","File_permissions": "664",//"dir_permissions": "775",//"extra_list_connections": 0,"Connect_timeout": "keepalive": +, "Ftp_passive_mode": true,"Ftp_obey_passive_host": false,//"Ssh_key_file": "~/.ssh/id_rsa",//"Sftp_flags": ["-F", "/path/to/ssh_config"], "Preserve_modification_times": false,//"remote_time_offset_in_hours": 0,//"remote_encoding": "Utf-8", "Remote_locale": "C",//"Allow_config_upload": false,}
Most of the content, I believe you crossing all the situation, I will not say more
"Save_before_upload": true,
"Upload_on_save": true,
These two parameters are particularly important, save_before_upload means to save before uploading, upload_on_save to upload when saving!
OK, this will achieve the purpose, after the sublime save, automatically upload files, so it is convenient to browse!
Sublime 3 How to set xftp Save auto Upload