Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Copy WatcherNew to Visual Studio Code? Get it now.
Copy Watcher

Copy Watcher

Pavel Purma

|
937 installs
| (2) | Free
Mirror file changes to other folder
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Copy Watcher - README

This extension mirror file changes to other folder.

Features

Copy changed files from source to destination folder. Included files must match to filter (array of globs, minimatch expressions). At the start this extension can copy all newer files. It can copy them from both sides (source => destination and even destination => source). This's handy for project's shared component which can be placed in other git repository.

Extension Settings

This extension contributes the following settings:

  • copyWatcher.sections: Array of copy and watch definition (source and destination)

Copy watch definition properties:

  • source: Source folder (relative to workspace root folder)
  • destination: Destination folder (relative to workspace root folder)
  • destinationRequired: This copy definition will be active only if destination folder exists (default true)
  • includes: Array of minimatch filters
  • excludes: Array of minimatch filters which are applied in negative way
  • initialCopy: Copy all newer files when extension started (default false)
  • initialCopyReverse: Same as initialCopy but files are copied in opposite direction (default false)
  • deleteEnabled: Delete of source file will be applied to destination file (default false)

Example:

"copyWatcher.sections": [
    {
        "source": "Components/Component",
        "destination": "../../ComponentRepository/Component",
        "destinationRequired": true,
        "includes": [
            "**/*.js",
            "**/*.ts"
        ],
        "excludes": [
            "node_modules/**/*",
            "out/**/*"
        ],
        "initialCopy": true,
        "initialCopyReverse": true,
        "deleteEnabled": true
    }
]

Contribution

Fork the repository and submit pull requests.

Release Notes

1.0.0

Initial release

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft