VSCode = Visual Studio Code 에서 사용할 수 있는 확장(Extension) 입니다.


ftp/sftp 동기화 확장입니다.


링크 : https://marketplace.visualstudio.com/items?itemName=liximomo.sftp




매우 강력하고 스마트한 기능. 매우 간단하고, 세 줄의 설정 만 필요합니다! 매우 빠르며 눈 깜짝할 사이 끝납니다.


  • 원격 탐색기로 원격 브라우저
  • 로컬 및 원격 비교
  • 디렉토리 동기화
  • 업로드 / 다운로드
  • 저장시 업로드
  • 파일 감시자
  • 다중 구성
  • 전환 가능한 프로필


{
  "host": "host",
  "username": "username",
  "remotePath": "/remote/workspace"
}
{
  "username": "username",
  "password": "password",
  "remotePath": "/remote/workspace/a",
  "watcher": {
    "files": "dist/*.{js,css}",
    "autoUpload": false,
    "autoDelete": false
  },
  "profiles": {
    "dev": {
      "host": "dev-host",
      "remotePath": "/dev",
      "uploadOnSave": true
    },
    "prod": {
      "host": "prod-host",
      "remotePath": "/prod"
    }
  },
  "defaultProfile": "dev"
}

Note: context and watcher are only avaliable at root level.

Use SFTP: Set Profile to swtich profile.

[
  {
    "name": "server1",
    "context": "/project/build",
    "host": "host",
    "username": "username",
    "password": "password",
    "remotePath": "/remote/project/build"
  },
  {
    "name": "server2",
    "context": "/project/src",
    "host": "host",
    "username": "username",
    "password": "password",
    "remotePath": "/remote/project/src"
  }
]

Note: name is required in this mode.

You can connection to a target server through a proxy with ssh protocol.

Note: Variable substitution is not working in a hop config.

local -> hop -> target

{
  "name": "target",
  "host": "targetHost",
  "username": "targetUsername",
  "privateKeyPath": "~/.ssh/id_rsa",
  "remotePath": "/path/in/target",
  "hop": {
    "host": "hopHost",
    "username": "hopUsername",
    "privateKeyPath": "/Users/hopUsername/.ssh/id_rsa" // The key file is assumed on the hop.
  }
}

local -> hopA -> hopB -> target

{
  "name": "target",
  "host": "targetHost",
  "username": "targetUsername",
  "privateKeyPath": "~/.ssh/id_rsa",
  "remotePath": "/path/in/target",
  "hop": [
    {
      "host": "hopAHost",
      "username": "hopAUsername",
      "privateKeyPath": "/Users/hopAUsername/.ssh/id_rsa"
    },
    {
      "host": "hopBHost",
      "username": "hopBUsername",
      "privateKeyPath": "/Users/hopBUsername/.ssh/id_rsa"
    }
  ]
}

You can use remote to tell sftp to get the config from remote-fs.

In User Setting:

"remotefs.remote": {
  "dev": {
    "scheme": "sftp",
    "host": "host",
    "username": "username",
    "rootPath": "/path/to/somewhere"
  },
  "projectX": {
    "scheme": "sftp",
    "host": "host",
    "username": "username",
    "privateKeyPath": "/Users/xx/.ssh/id_rsa",
    "rootPath": "/home/foo/some/projectx"
  }
}

In sftp.json:

{
  "remote": "dev",
  "remotePath": "/home/xx/",
  "uploadOnSave": true,
  "ignore": [".vscode", ".git", ".DS_Store"]
}




자세한 설정 및 명령어는 WIKI ( https://github.com/liximomo/vscode-sftp/wiki ) 를 참고하세요.

VSCode = Visual Studio Code 에서 사용할 수 있는 확장(Extension) 입니다.


VSCode의 설정, 스니펫, 테마, 파일 아이콘, 실행, 키 바인딩, 작업공간과 확장을 GItHub Gist 를 사용하여 동기화 하는 확장입니다.




주요 특징

1. GitHub 계정의 Token과 Gist 사용
2. 원클릭으로 쉽게 업로드 & 다운로드
3. 영향을 받은 구성 및 확장에 대한 세부 정보가 포함된 요약 페이지를 마지막에 표시
4. 시작시 마지막 설정 자동 다운로드
5. 파일 변경시 자동 업로드 설정
6. 다른 사용자와 Gist 공유를 통한 설정 다운로드
7. GitHub Enterprise 지원
8. Support pragmas with @sync keywords: host, os and env are supported.


동기화 항목

All extensions and complete User Folder that Contains
1. Settings File
2. Keybinding File
3. Launch File
4. Snippets Folder
5. VSCode Extensions & Extensions Configurations
6. Workspaces Folder

이 확장 기능을 사용하려면 GitHub 계정에서 개인 액세스 토큰이 필요합니다. 아래 그림의 단계를 따르면 됩니다.


Go to Settings / Developer settings / Personal access tokens / Generate New Token



토큰에 대한 용도 입력 후 생성합니다.


Generate Token 버튼을 클릭시 아래와 같이 Token이 생성합니다.


나중에 사용할 수 있도록 토큰을 저장 또는 메모해 놓으셔야 합니다.


Shift + Alt + U 를 누른 후 생성한 GitHub 계정 access token 을 입력합니다.


설정을 자동으로 업로드 하면 Gist ID 를 시스템 메세지로 줍니다.


Gist ID 는 token 과 함께 다른곳에 저장 또는 메모해 놓으셔야 합니다.


Shift + Alt + D 를 누른 후 생성된 access token 과 GitHub Gist ID 를 입력합니다.



모든 파일이 다운로드 됩니다.



일부 동기화가 안되는 확장이나 설정이 있을 수 있습니다.

FTP/SFTP 서버에서 로컬 workspace 로 쉽게 파일/디렉토리를 동기화 해주는 확장입니다.


링크 : https://marketplace.visualstudio.com/items?itemName=lukasz-wronski.ftp-sync





기본 명령어


Initializes a default FTP-Sync configuration file in the .vscode directory. Options can be customised as follows:

  • remotePath - This can be set to the path on the remote that you would like to upload to. The default is ./ i.e. the root.
  • host - The hostname of the FTP server you want to connect to.
  • username - The username of the FTP account you want to use.
  • password - The password of the FTP account you want to use.
  • port - The port on the FTP server you would like to connect to. The default is "21".
  • protocol - The FTP protocol to be used. The default is "ftp" but you can also specify "sftp".
  • uploadOnSave - Whether files should automatically be uploaded on save. The default is false.
  • passive - Specifies whether to use FTP passive mode. The default is false.
  • debug - Specifies whether to display debug information in an ftp-sync Output window. The default is false.
  • privateKeyPath - Specifies the path to the private key for SFTP. The default is null.
  • passphrase - Specifies the passphrase to use with the private key for SFTP. The default is null.
  • ignore - An array of escaped regular expression strings specifying paths to ignore. If a path matches any of these regular expressions then it will not be included in the sync. Default values are "\\.git""\\.vscode"and ".DS_Store".
  • "generatedFiles": {
    • "uploadOnSave": true,
    • "path": "", [e.g.] "/build",
    • "extensionsToInclude": [] e.g. [".js", ".styl"] }

Displays a synchronization wizard to configure a sync operation that changes FTP files and folders to match project files.

Displays a synchronization wizard to configure a sync operation that changes project files and folders to match FTP files.

Commits reviewed list of changes made with Sync Local to Remote or Sync Remote to Local command.



FTP/SFTP 서버의 파일/디렉토리를 로컬 workspace 로 다운로드/업로드 할 수 있는 확장입니다.


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




wprkspace 에서 ftp-kr Init 으로 초기화 합니다.



ftp-kr 기본 설정 입력



설정 완료후 ftp-kr Download All 을 통해 서버에 있는 파일/디렉토리를 다운로드 받을 수 있습니다.



ftp-kr List 명령어를 통해 원격 디렉토리를 둘러 볼 수 있습니다.




기본 명령어

  • Real-Time FTP/SFTP synchronization(You can off it!)
  • 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.


고급 명령어

  • ftp-kr: Diff This - Diff this file.
  • ftp-kr: Refresh - Rescan remote files.
  • ftp-kr: Clean All - Cleaning remote files that not in workspace.
  • ftp-kr: Run task.json - Run a batch task. It is auto generated and run by * All commands. You can use it with same syntax
  • ftp-kr: Reconnect - Reconnect the server.
  • ftp-kr: Cancel - Cancel current tasks
  • ftp-kr: Target - Swaps the main server. For using with alternate servers
  • ftp-kr: List - Browse remote directories.
  • ftp-kr: View - View a remote file. used internally

추가
Download All / Upload All 시 내용이 다르더라도 파일의 크기가 같을 경우 무시되므로 주의해야 합니다.


+ Recent posts