Preface:
Recently in the study of web design, has come into contact with HTML, CSS and JavaScript, write more and more code, but also more and more feel the code to upload the flow of the server is too cumbersome. I started with a virtual host to provide the control Panel to download the Web page code, and then use the FTP tool remotely connected to the virtual machine host FTP server, but the entire operation process is still not concise. This article I will share a direct in sublime text 3 inside the FTP server, only use sublime text 3 to complete the remote FTP server file download, modify and upload operations, improve the efficiency of web editing. 1. Configure the plug-in installation environment
Open SUBLIMETEXT3, use SHIFT + Ctrl + p to open the command panel
Input:
Install
Select the pop-up below the input box
Install Package Control
Wait a moment and it will eject the prompt for the successful installation.
Use SHIFT + Ctrl + p to open the command panel and enter:
Install
Select the pop-up below the input box:
Install Package
Wait a moment and the installation will be complete. 2. Configure the SFTP plugin
Use SHIFT + Ctrl + p to open the command panel and enter:
SFTP
Click the pop-up sftp below to wait for the installation to complete.
Then open it in turn:
File-> sftp/ftp-> Setup Server
You will see the following code (other code is not listed, I added the following Chinese comment):
SFTP, FTP or FTPs
"type": "SFTP",//if the SFTP protocol used is "SFTP", otherwise change to "ftp"
"Sync_down_on_open": True,
"sync_ Same_age ": True,
" host ":" example.com ",//Enter the IP address of the remote server or the domain
" user "here:" username ",//Enter the FTP username
/// Password ":" Password ",//Enter the FTP password here (note to remove the first annotation symbol"//")
//" Port ":" 22 ",//here according to their own situation, general FTP corresponding to 21st port, sftp corresponding to 22nd port, Also remember to remove the first annotation symbol "//"
"Remote_path": "/example/path/", //Select the path for the project on the remote server here
Save after the configuration is done, just like save other files, name the suffix ". JSON", and click Save.
(Note: The saved path that is created automatically is C:\Users\Master\AppData\Roaming\Sublime Text 3\packages\user\sftp_servers) 3. Download and edit files on a remote FTP server
Open in turn
File-> sftp/ftp-> Browse Server
There are two options, one is "ADD New server" and the other is the remote FTP server we just configured.
Select the remote FTP server that we have just configured, and we will list folders and files under the Remote FTP server project path that we entered in the configuration file, "folder Actions" and "up a folder". After clicking, there will be "back to List", "Edit", "Rename", "Chmod", "Delete" options, you can select the action you want to do as needed. When editing is complete, you can save the file to a remote FTP server by using the CTRL + S key combination.
End
For more information please visit my personal website Wilderness Dream