VSC - SFTP Extension

PIC developers connect to wpengine and other wordpress hostings using the SFTP extension from visual studio code.

How to use it:
On the client folder execute command shift P to open the SFTP configuration.

In there we need to add an array of objects for the different environments configurations.

IMPORTANT:

Setting CONTEXT - Is the local folder in the location you are where files are going to get downloaded. So it's important to have this set right.

You don't have to have the three environments set but always set it as an array so when you need the other environment you don't have to change the whole configuration.

Example:
[
{
"name": "agi dev",
"host": "agilerisingdev.sftp.wpengine.com",
"protocol": "sftp",
"port": 2222,
"username": "agilerisingdev-mariana",
"remotePath": "/wp-content/",
"password": "2840##PICgo",
"uploadOnSave": true,
"context": "development/agile-rising/"
},
{
"name": "agi prod",
"host": "agilerising.sftp.wpengine.com",
"protocol": "sftp",
"port": 2222,
"username": "agilerising-pic",
"remotePath": "/wp-content/",
"password": "2840##PICgo",
"uploadOnSave": true,
"context": "production/agile-rising/"
},
{
"name": "agi sta",
"host": "agilest.sftp.wpengine.com",
"protocol": "sftp",
"port": 2222,
"username": "agilest-mariana",
"remotePath": "/wp-content/",
"password": "2840##PICgo",
"uploadOnSave": true,
"context": "staging/agile-rising/",
"watcher": {
"files": "themes/piconsulting-child/styles/css/main.css",
"autoUpload": true,
"autoDelete": false
}
}
]