Tools

vscode - ftp 사용하기 (확장프로그램, ftp-kr)

에그티비 2023. 12. 5. 15:36

vscode 에서 FTP 를 이용해서 직접 서버에 연결해서 업로드 또는 파일 수정을 할 수 있다.

1. 설치하기

https://marketplace.visualstudio.com/items?itemName=ruakr.ftp-kr

 

ftp-kr - Visual Studio Marketplace

Extension for Visual Studio Code - FTP/SFTP Sync Extension

marketplace.visualstudio.com

2. 연결설정

cmd + shift + P (명령어창 열기)

ftp-kr:Init 입력

 

{
    "host": "",
    "username": "",
    "password": "",
    "remotePath": "",
    "protocol": "ftp",
    "port": 21,
    "fileNameEncoding": "utf8",
    "autoUpload": true,
    "autoDelete": false,
    "autoDownload": false,
    "ignore": [
        ".git",
        "/.vscode"
    ],
    "ignoreWrongFileEncoding": false
}

 

기본 명령어

ftp-kr: Init - Starts up extension and generates ftp-kr.json.
ftp-kr: Upload All - Upload all without same size files.
ftp-kr: Download All - Download all without same size files.
ftp-kr: Upload This - Upload this file.
ftp-kr: Download This - Download this file.
ftp-kr: Delete This - Delete file in remote server.