[command] + [SHIFT] + [P] → 「Package Controll : install Package」から SFTPを検索してインストール
1. Project → Add Folder to Project からフォルダを追加する
2. 追加したフォルダを右クリック「SFTP/FTP」→「Map to remote」
3. sftp-config.json ファイルが開くので、そこに SFTPサーバ情報を記述する(必須の設定項目は ↓ こちら)
sftp-config.json で設定する項目
"host": "SFTPサーバ名",
"user": "SFTPユーザー名",
"port": "SFTPポート番号",
"remote_path": "リモートサーバのパス",
"ssh_key_file": "~/.ssh/SSH秘密鍵",
4. ファイルを編集して保存すると自動的にアップロードが開始されます( 画面下にアップロードの進捗が表示されます。success と一瞬表示されるのでそれを確認してください。failedの場合はエラーが出ています。)
5. プロジェクトファイルをローカルの好きな場所に保存しておきます。
6. サイドバーへの移動は「Ctrl」+「0」です。これでキーボードで操作できます。
Package Control Messages
========================
SFTP
----
Thanks for installing Sublime SFTP! Below are some quick notes to get you
started with the plugin. Please see https://wbond.net/sublime_packages/sftp for
the full documentation.
There are two major modes of operation:
1. Mapping a local folder to a remote folder
2. Working off of a server
Mapping a Local Folder to a Remote Folder
----
To map a local folder to a remote folder, right-click on it in the side bar
and select the SFTP/SFTP > Map to Remote... You will enter your connection
parameters and a new file will be created named sftp-config.json.
Once this file has been saved, all files in that folder and all subfolders
will have various operations available via the side bar context menu, editor
context menu and command palette.
Working off of a Server
----
To work off of a server, use the File menu and select SFTP/FTP > Setup Server...
You will enter your connection parameters and options then save the file with
the name you want to give the connection.
Once the server config is saved, you will be automatically connected to the
server and you can browse and perform actions via the quick panel.
Unfortunely due to limitations of the Sublime Text API, it is not possible
to present the remote filesystem in the side bar. There are, however, key
bindings for connecting to servers to help reduce the amount of time remote
file operations take.
Support
----
To learn more about the features and settings, please visit
https://wbond.net/sublime_packages/sftp.
If you are having trouble, please visit
https://wbond.net/sublime_packages/sftp/support. The support page includes
instructions for capturing a debug log that will be useful if you believe
you are experiencing a bug.