view installed extensions visual studio code code example
Example 1: vscode get list of installed extensions
code --list-extensions | % { "code --install-extension $_" }
Example 2: vscode get list of installed extensions
code --list-extensions | xargs -L 1 echo code --install-extension