SFTP can synchronize the files of the remote device to the local, open and edit locally, and automatically synchronize the modified content to the remote
1. First create a directory locally, I create an nginx directory
Then open the newly created directory
2. Install the sftp plug-in tool
3. In vscode, press ctrl+shift+P, search appears, search for sftp and click SFTP:config
Generate a configuration file
After configuring, right-click vscode and click Download Folder
then you can