Skip to content

Instantly share code, notes, and snippets.

@guillaumemolter
Last active March 3, 2017 15:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guillaumemolter/b7129efafb3640a7adf1a0eb1e1606cc to your computer and use it in GitHub Desktop.
Save guillaumemolter/b7129efafb3640a7adf1a0eb1e1606cc to your computer and use it in GitHub Desktop.
Syncing Visual Code extensions
#!/bin/bash
#Update this with your own path. Mine is in dropbox because I use Tom McFarlin's trick to sync https://tommcfarlin.com/sharing-visual-studio-code-settings/
CODE_PREFS_PATH='/Users/guillaumemolter/Dropbox/Apps/Code/User/extensions.conf'
EXTENSIONS=`cat $CODE_PREFS_PATH`
for EXTENSION in ${EXTENSIONS[@]}
do
code --install-extension $EXTENSION
done
# then add to your .bash_profile :
# alias code-ext-list="code --list-extensions > /Users/guillaumemolter/Dropbox/Apps/Code/User/extensions.conf"
# alias code-ext-sync="/Users/guillaumemolter/Dropbox/Apps/Code/User/code-sync-extensions.sh"
#
# Additionnaly you can add a cronjob or launchd deamon to auto sync everyday
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment