https://github.com/hoddy3190/sync-extensions
A VSCode extension which automatically exports your installed extensions data when extensions are installed, uninstalled, enabled or disabled.
https://github.com/hoddy3190/sync-extensions
visual-studio-code vscode vscode-extension
Last synced: 6 months ago
JSON representation
A VSCode extension which automatically exports your installed extensions data when extensions are installed, uninstalled, enabled or disabled.
- Host: GitHub
- URL: https://github.com/hoddy3190/sync-extensions
- Owner: hoddy3190
- License: mit
- Created: 2021-01-01T13:40:14.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2022-11-08T17:15:15.000Z (over 3 years ago)
- Last Synced: 2025-01-09T23:27:24.303Z (about 1 year ago)
- Topics: visual-studio-code, vscode, vscode-extension
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=hoddy3190.sync-extensions
- Size: 42 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# sync-extensions
This extension automatically exports your installed extensions data when extensions are installed, uninstalled, enabled or disabled.
Also you can export manually with `sync-extensions: export extensions data` command.
## Extension Settings
This extension has the following settings:
+ `sync-extensions.path`
- file name and its absolute path in which extensions data is exported
- setting example: `/path/to/myextensions.json`
## Exported Data Format
The format is JSON.
If you install multiple versions per extension id, current using version is written.
```
{
...
"vscode.typescript": {
"version": "1.0.0"
},
"vscode.typescript-language-features": {
"version": "1.0.0"
},
...
}
```
## How to import extensions from exported settings
1. install "code" command referring "[Launching from the command line](https://code.visualstudio.com/docs/setup/mac#_launching-from-the-command-line)"
2. Execute this shell scripts (you can execute from anywhere) after replacing "/path/to/myextensions.json" string in the script with your value of `sync-extensions.path`
```sh
SYNC_EXTENSIONS_PATH="/path/to/myextensions.json" /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/hoddy3190/sync-extensions/main/install_extensions.sh)"
```
## Why not use "Settings Sync"
VS Code has function for syncing settings, called "[Settings Sync](https://code.visualstudio.com/docs/editor/settings-sync)".
In fact, this can sync extensions.
The reason why I don't use "Settings Sync" is the followings:
- Settings Sync uses cloud service such as GitHub, Microsoft to sync, but I want to sync locally for security.
- Settings Sync exports settings manually, but I want to export automatically.