Install VSCODE (Visual Studio Code) Sync-Rsync on Windows 10 Using WSL (Windows Subsystem for Linux)

Edited by Doug Collins, Patrick Murphy, Maria Quinney, Nathan eddings

First I tried using the vscode "Remote Workspace" extension but it has a fatal flaw. You cannot search local files!! I was warking on a Laravel Framework based app and it was a nightmare to find what I was looking for sometimes without the ability to search through all the files for what I was looking for. (Yes I lose track sometimes... getting too old).

Next I was synchronizing between windows 10 and my linux dev test environment using the SFTP extension but it kept missing files and making mistakes. I knew that rsync was completely reliable so I found an extension to do that but the setup WAS NOT STRAIGHT FORWARD at least for me. So I decided to document what I did for others ( YOU! ). I hope this helps.

First you will need to make sure you have Rsync installed on both Windows 10 and Linux.

Install Rsync on Linux

This is easy. If you are using a different Linux distro you will need to adapt.

  1. 1
    Type "rsync" on your command line and see if it is already installed
    Was this step helpful? Yes | No| I need help
  2. 2
    If not, type either "yum install rsync" for Centos or "sudo apt-get install rsync" for Ubuntu.
    Was this step helpful? Yes | No| I need help

Install Rsync on Windows 10 by Enabling WSL (Windows Subsystem for Linux)

If you haven't heard of WSL or used it you are in for a real treat! It opens a whole new world running in my base Unbuntu on my windows 10 laptop. I can run and code all kinds of things that were quite frankly very hard or messy before. Its not hard to install.

Instead of writing out the instructions again I will refer you to [these instructions for setting up WSL https://medium.com/hugo-ferreiras-blog/using-windows-subsystem-for-linux-for-data-science-9a8e68d7610c], BUT STOP WHEN IT STARTS ASKING YOU TO INSTALL ANACONDA. You won't need that for this application.

If you have problems with any of the steps in this article, please ask a question for more help, or post in the comments section below.

Comments

Article Info

Recent edits by: Maria Quinney, Patrick Murphy, Doug Collins

Share this Article:

Internal error - VisiHow

Sorry! This site is experiencing technical difficulties.

Try waiting a few minutes and reloading.

(Cannot contact the database server: Connection timed out (192.168.2.4))


You can try searching via Google in the meantime.
Note that their indexes of our content may be out of date.