Skip to content

Instantly share code, notes, and snippets.

@wilmoore
Last active June 29, 2024 23:28
Show Gist options
  • Select an option

  • Save wilmoore/8be9f0b73fc8191834be38eddaf1aa5a to your computer and use it in GitHub Desktop.

Select an option

Save wilmoore/8be9f0b73fc8191834be38eddaf1aa5a to your computer and use it in GitHub Desktop.
Software Engineering :: Editor :: Text :: Visual Studio Code :: Extensions :: Backup

Software Engineering :: Editor :: Text :: Visual Studio Code :: Extensions :: Backup

⪼ Made with 💜 by Polyglot.

About

list all installed extensions
code --list-extensions [--show-versions]
backup all installed extensions
bash -c 'code --list-extensions > $TMPDIR/code-list-extensions-$(date -u +"%Y%m%dT%H%M%SZ")'
list backups
find $TMPDIR/ -maxdepth 1 -type f -name "code-list-extensions*" -print0 | xargs -0 -n 1 basename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment