This Visual Studio Code extension adds the ability to sync code between a computer and a Raspberry Pi with minimal setup using rsync. This plugin was tested on VSCode v1.36.1 on Windows 7 using Cygwin for rsync (v3.0.6, protocol version 30) capability and a Raspberry Pi running Ubuntu MATE v18.04.2 LTS.
I have not tested this on mac or Linux, but it should work, though it may require slight changes in the sync and compare files. See below.
Additionally, this extension can be used for syncing other devices or locally using rsync. Or, if you must, exploited to run a Batch or Bash file by command/keyboard shortcut in VSCode.
These features are runnable via the command pallette in VSCode. Keyboard shortcuts can be specified for each command in the Keybindings settings in VSCode.
Note: There isn't a way to send SIGTERM to the VSCode integrated terminal. If you need to stop a sync or compare running, open the terminal and hit CTRL+C.
You can also compare the source and destination in VSCode using rsync. The results of the compare are found in the integrated terminal. The behavior of the compare files is that of the sync files regarding workspace and global files.
Rsync has the capability to exclude certain files from syncing to the destination. To specify files to exclude, right click the file in the explorer and select
To edit the exclusion file, run the command
This extension operates under the assumption that you have rsync installed and configured correctly on both devices.
If you do not setup an RSA keypair, you will have to open the integrated terminal and sign in to your remote device every time.
On Windows, you must use Cygwin to install rsync and use cygdrive paths.
You can download the latest version of the extension. To install, run
You can also install it from the VSCode Marketplace.
Cygwin & Rsync Resources
Enabling SSH on RPi - Note: You may have to
See the changelog for complete information.
This extension is licensed under AGPL-3.0. See the