1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

VSCodeの拡張機能「SFTP」で複数のディレクトリに同時接続する方法

Posted at

##はじめに
WordPress開発の時などに便利な拡張機能「SFTP」。

同時にいくつかのディレクトリを設定したい時もあるかと思います。

ちょうど先日私も同じ悩みを抱えていました。

その際に上司よりいい方法を教えていただいたので、
備忘録を兼ね記しておきます。

##結論
早速目的を達成するためのコードを書きましょう。

main.js

[
  {
    "name": "myProject",
    "context": "",
    "host": "",
    "protocol": "ftp",
    "port": 21,
    "username": "",
    "password": "",
    "remotePath": "",
    "uploadOnSave": true
  },
  {
    "name": "myProject22",
    "context": "",
    "host": "",
    "protocol": "ftp",
    "port": 21,
    "username": "",
    "password": "",
    "remotePath": "",
    "uploadOnSave": true
  }
]

以上です。

配列の要素として各設定のオブジェクトを格納するだけですね。

是非お役立てください。

1
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?