Created
May 23, 2020 21:51
-
-
Save onelharrison/04231e0fd15bf88ab3fa3c87a8153802 to your computer and use it in GitHub Desktop.
Reproducible vscode builds
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## === 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