问题
I have installed ftp.simple, watched the YouTube video, created a SFTP config for a remote server in the ftp-simple-temp-json, and run the command: Open the file directly from FTP server, among others. Nothing happens -- no messages as sent in the video. Any ideas about what is going wrong? Is there a log file that I can look at? Thanks, Sue.
回答1:
0- check your internet connection 00- reload or restart VS CODE.
1- cmd + shift + p --> type: ftp-simple:Config --> Enter
2- change this file
[
{
"name": "Sample-Name",
"host": "Sample-Host",
"port": 21,
"type": "ftp",
"username": "Your FTP USERNAME",
"password": "Your FTP PASSWORD",
"path": "/",
"autosave": true,
"confirm": true
}
]
---> save then hit enter.
3- a little bar at the top of the window shows up with "Sample-Name" given above --> hit enter
4- wait a moment (depending on your internet connection speed) then another little bar pops up with a directory of your FTP server and just hit enter to see the entire project folder.
you should be fine...
回答2:
You can check the logs to see if an error occurred.
%appdata%/Code/logs/[Date]/renderer1.log
I found the error I had using this file.
My versions:
- VSCode 1.27.2 (64 bits)
- ftp-simple 0.6.7
回答3:
- Press F1, in the input type ftp-simple
- Click on the ftp-simple:Config then a file will be open
- fill the file with true information like below and save it:
{ "name": "any given name", "host": "given ftp address", "port": 21, "type": "ftp", "username": "given username", "password": "given password", "path": "/", "autosave": true, "confirm": true }
- Press F1 again and type ftp-simple and click on ftp-simple:Open then your chosen name in a little bar will be show up on top
- click on chosen name on the top bar and go to directory you want
- if after doing this nothing happened or in the 4th step nothing show up to you then go to log file directory: a address like below
C:\Users\username\AppData\Roaming\Code\logs
and find out what is the problem.
来源:https://stackoverflow.com/questions/48217994/how-to-use-ftp-simple-in-vscode