I was looking a simple way to get sync all of my current setup of vscode, I did’t found a proper way to do with another plugin, but I found a commands to do this sync.
first to have a list of plugins installed and save to a file:
code --list-extensions > vscode-extensions.list
to restore, read that file and install all plugins:
cat vscode-extensions.list | xargs -L 1 code --install-extension
# using bat
bat vscode-extensions.list --plain | xargs -L 1 code --install-extension
you can easily put this list in your dotfiles example.