export extension list - jenhaoyang/backend_blog GitHub Wiki

Manual

Make sure you have the most current version of Visual Studio Code. If you install via a company portal, you might not have the most current version.

On machine A

Unix:

code --list-extensions | xargs -L 1 echo code --install-extension

Windows (PowerShell, e. g. using Visual Studio Code's integrated Terminal):

code --list-extensions | % { "code --install-extension $_" }

Copy and paste the echo output to machine B

Sample output

code --install-extension Angular.ng-template
code --install-extension DSKWRK.vscode-generate-getter-setter
code --install-extension EditorConfig.EditorConfig
code --install-extension HookyQR.beautify

參考:
https://stackoverflow.com/a/49398449