How to use ftp.simple in VSCode

喜欢而已 提交于 2019-11-27 07:14:58

问题


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:


  1. Press F1, in the input type ftp-simple
  2. Click on the ftp-simple:Config then a file will be open
  3. 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
    }
  1. 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
  2. click on chosen name on the top bar and go to directory you want
  3. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!