# Files editor

## How to install

* [Download Visual Studio Code (vs-code)](https://code.visualstudio.com/download)
* [Download the extension here](https://marketplace.visualstudio.com/items?itemName=LoneDev.ia-vscode)

### Preview

<div align="left"><figure><img src="https://2228257718-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Faipc4QQKwVS0w1Q604ya%2Fuploads%2Fgit-blob-a3ee4740c3f504dcd727190fa30c9bc22cf3984e%2Fimage%20(12)%20(1).png?alt=media" alt="" width="397"><figcaption></figcaption></figure></div>

### How to enable the descriptions on fields/suggestions

<figure><img src="https://2228257718-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Faipc4QQKwVS0w1Q604ya%2Fuploads%2Fgit-blob-699c736224f8df2755a512d887368ea820eb405b%2Fimage%20(1)%20(1)%20(1)%20(1).png?alt=media" alt=""><figcaption></figcaption></figure>

## FTP

Download the FTP VSCode extension [from here](https://marketplace.visualstudio.com/items?itemName=Natizyskunk.sftp).

Create an empty folder anywhere on your PC, for example in the `Downloads` folder.\
This folder will contain a copy of your server files which will be synced on each saving.\
For example `remote_itemsadder_contents`.

Press `CTRL+SHIFT+P` and run **Config**.

<figure><img src="https://2228257718-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Faipc4QQKwVS0w1Q604ya%2Fuploads%2Fgit-blob-fd340f849ed465c362a1da00691756a852e5671f%2Fimage%20(89).png?alt=media" alt=""><figcaption></figcaption></figure>

Change `host`, `port`, `username` and `password` (and `protocol` if needed).\
`uploadOnSave` allows you to automatically upload the files on saving.

```json
{
    "name": "My Server",
    "host": "eux1.humbleservers.com",
    "protocol": "sftp",
    "port": 2022,
    "username": "username",
    "password": "password",
    "remotePath": "/plugins/ItemsAdder/",
    "uploadOnSave": true,
    "useTempFile": false,
    "openSsh": false
}
```

Press `CTRL+SHIFT+P` and run **Download Project**.

<figure><img src="https://2228257718-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Faipc4QQKwVS0w1Q604ya%2Fuploads%2Fgit-blob-4420f34154891ed421c8ff1e982eda9e6b6b734c%2Fimage%20(98).png?alt=media" alt=""><figcaption></figcaption></figure>
