Installing SFTP in VSCode on Linux

Having the ability to upload files to a cloud based server directly through their IDE is invaluable. It saves lots of time and confusion by taking out extra steps, and mitigating mistakes that consist of uploading files to wrong directories.

With the SFTP Code Plugin offered by VSCode, all you have to do is save the file, and it will automatically upload to your server. The Plugin, which could be downloaded here, can also be installed directly from the IDE.

To install, open up VSCode, and click on the extensions icon on the left-hand tool bar. Is squared in red above.

Next, type in SFTP into the marketplace search. This will bring up lots of packages to install, but just install the one from liximomo. Once you installed, you will be prompted to restart VSCode. After VSCode reboots, you’ll need to give VSCode the command of “CNTRL-P“. This will bring up a search bar at the top of your screen like so.

Now in your search bar, type in “SFTP: Config” and VSCode should autocomplete for you. Hit enter, and fill in some configuration json parameters.

    "protocol": "sftp",
    "host": "",
    "port": 10101,
    "username": "your_username",
    "password": "your_password",
    "remotePath": "/var/www/html/",
    "uploadOnSave": true

Make sure to add on the “uploadOnSave” function, as it won’t be there by default.With your extension configured, you’re ready to play. So hit the SFTP button that was added when you installed the extension, and start to code.

Once saved, it will automatically upload to your cloud server, totally bypassing any extra steps that are usually necessary when editing such things.

You Might Also Like

Leave a Reply

Your email address will not be published. Required fields are marked *