The Sync Extension is a Visual Studio Code extension designed to monitor and synchronize files between specified source and target directories automatically. This extension is useful for scenarios where multiple directories need to stay in sync while coding, building, or deploying.
Automatic File Synchronization: Monitors specified source directories for changes and synchronizes updates with target directories.
Event-Based Triggers: Detects file changes, creations, deletions, and renaming events to ensure the target directory always mirrors the source.
Maven Detection: Pauses synchronization if a Maven build is detected to avoid conflicts and resumes once the build completes.
Status Bar Integration: Shows the synchronization status in the VS Code status bar, making it easy to see when the extension is active.
Output Logging: Logs synchronization events (such as file creations, deletions, and updates) to the Output panel in VS Code.
Installation
Install the extension from the VS Code Marketplace.
Configure the syncfiles.json file in the .sync folder of your project.
Usage
The extension automatically activates on project load and monitors directories based on your configuration.
Configuration
Create a configuration file called syncfiles.json in a .sync directory at the root of your project. This file specifies the source and target directories for synchronization.