Skip to main content

synchronize a VS Code workspace with directories in a source repositories folder

Project description

VS Code Workspace Synchronizer

A script to synchronize a VS Code workspace with directories in a source repositories folder. It can add new directories and optionally remove directories that no longer exist.

uv tool install code-workspace-sync

For help and available commands, run: code-workspace-sync --help:

usage: code-workspace-sync [-h] [--src-repos SRC_REPOS]
                           [--workspace WORKSPACE] [--remove-missing]
                           [--dry-run] [--verbose]

Synchronize VS Code workspace with src_repos directories

options:
  -h, --help            show this help message and exit
  --src-repos SRC_REPOS
                        Path to the source repositories directory (default:
                        src_repos)
  --workspace WORKSPACE
                        Path to the VS Code workspace file (default: auto-
                        detect in current directory)
  --remove-missing      Remove directories from workspace that no longer exist
                        in src_repos
  --dry-run             Show what would be changed without making any
                        modifications
  --verbose, -v         Enable verbose output

Examples:
  # Basic sync (add missing directories)
  python sync_workspace.py

  # Sync with custom paths
  python sync_workspace.py --src-repos ./repositories --workspace my-workspace.code-workspace

  # Sync and remove missing directories
  python sync_workspace.py --remove-missing

  # Dry run to see what would change
  python sync_workspace.py --dry-run --verbose

  # Full sync with verbose output
  python sync_workspace.py --remove-missing --verbose

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

code_workspace_sync-0.1.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

code_workspace_sync-0.1.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file code_workspace_sync-0.1.1.tar.gz.

File metadata

  • Download URL: code_workspace_sync-0.1.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.3

File hashes

Hashes for code_workspace_sync-0.1.1.tar.gz
Algorithm Hash digest
SHA256 bf74a629bb4711a5b015fcbdcb83307e84a8f72f81ef3c511574b31f316a3164
MD5 7a475c26ab2e0907ef26975e14c028cd
BLAKE2b-256 77141f9c349d6e269e3480c3e63980949af0ce2af76d75918902cba973b48956

See more details on using hashes here.

File details

Details for the file code_workspace_sync-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for code_workspace_sync-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4e33d47a81858533f259d55b3f8c782bee88bb60a7e8713dd9eadd8b542746ad
MD5 0bfde09d9571b54705a3ddb57f61aecf
BLAKE2b-256 03be0ffc35309b0fb8003358f9103a5f98df6f06c79ba5671ab2d35ce346ee37

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page