If you need to share snippet files and keep them updated when they change, Snippet Sync is for you!
Snippet Sync allows your team to keep any GitHub-hosted snippet file up to date across repositories. Snippet Sync supports both public and private repositories.
- Supports any repo hosted at github.com.
- Sign in with your GitHub account to access snippets in private repos.
- Sync automatically every 10 minutes, or sync manually whenever you want.
- Keyboard shortcut for syncing (alt + shift + s).
- Snippet files must be hosted at github.com. Self-hosted repos not currently supported.
- If a snippet file is in a private repo, you must sign in to GitHub by running Snippet Sync: Sign In to GitHub from the Command Palette.
This extension contributes these settings:
snippetSync.snippetFiles
: List of github-hosted snippet files. Must be the full path to the GitHub file view (not the raw content).snippetSync.autoSyncSnippetFiles
: Whether to automatically sync snippet files every 10 minutes.
- Snippet files aren't currently validated. If the file exists, it's synced.
- Only GitHub-hosted snippets are supported. Self-hosted git repos are not supported.
- Add option to automatically sync snippets every 10 minutes. This option is enabled by default. To disable, set Auto Sync Snippet Files to false. (#17)
- Add alt + shift + s keyboard shortcut for **Insert Snippet". (#19)
- Add status bar item to show sync status. (#20)
- Click status bar to show available commands. (#20)
- Suppress success notifications (#20)
Update package.json for a better Marketplace listing.
Initial release ๐๐