Skip to content

Instantly share code, notes, and snippets.

@onelharrison
Created May 23, 2020 21:51
Show Gist options
  • Save onelharrison/04231e0fd15bf88ab3fa3c87a8153802 to your computer and use it in GitHub Desktop.
Save onelharrison/04231e0fd15bf88ab3fa3c87a8153802 to your computer and use it in GitHub Desktop.
Reproducible vscode builds
## === Backup Environment
# 1. Backup your settings.json file
#
# For total control over extension versions,
# - extensions.autoUpdate
# - extensions.autoCheckUpdates
#
# Default settings.json locations:
# - Windows: %APPDATA%\Code\User\settings.json
# - macOS: $HOME/Library/Application Support/Code/User/settings.json
# - Linux: $HOME/.config/Code/User/settings.json
# 2. Save list of extensions and their versions to file
code --list-extensions --show-versions > vscode_extensions
## === Rebuild Environment
# 1. Copy settings.json to it's appropriate location for your operating system
# 2. Install extensions from file
cat extensions.code | xargs code --install-extension
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment