VSCode preserve installed extensions

Paul Sweeney · 25th January 2021

To export and recreate installed VSCode extentions…

Export the list of installed extensions from an existing VSCode with:

  • Open terminal, usually with ctrl-` or ctrl-'
  • then one of:
    • Powershell: code --list-extensions | % { "code --install-extension $_" } > vscode_extensions.ps1
    • Bash: code --list-extensions | xargs -L 1 echo code --install-extension > vscode_extensions.sh

To recreate, run the script.

Thanks

Info from this stackoverflow response.