Get a list of all installed extensions:
code --list-extensions > vs-code-extensions.txt
Backup a copy of ~/.config/Code - OSS/User/settings.json
as well.
Copy the settings.json
back to ~/.config/Code - OSS/User
Install the extensions:
ccat vs-code-extensions.txt | xargs -L 1 -n 1 code --install-extension