Skip to content

Instantly share code, notes, and snippets.

@EDM115
Last active April 21, 2024 16:45
Show Gist options
  • Save EDM115/7f90913892cf5dd0e5141316ea37b261 to your computer and use it in GitHub Desktop.
Save EDM115/7f90913892cf5dd0e5141316ea37b261 to your computer and use it in GitHub Desktop.
VS Code : install extensions from a file

VS Code : install extensions from a file

  • To export all installed extensions
code --list-extensions > extensions.txt
  • On linux, think to do
chmod +x vs-code-install-extensions.sh

If you're using VS Code insiders, replace code with code-insiders

@echo off
for /F "tokens=*" %%A in (extensions.txt) do (
code --install-extension %%A --force
)
#!/usr/bin/env bash
cat extensions.txt | while read extension || [[ -n $extension ]];
do
code --install-extension $extension --force
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment