Automatic
If you are looking forward to an easy one-stop tool to do it for you, I would suggest you to look into the Settings Sync extension.
It will allow
- Export of your configuration and extensions
- Share it with coworkers and teams. You can update the configuration. Their settings will auto updated.
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-extensionWindows (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
Please make sure you have the code command line installed. For more information, please visit Command Line Interface (CLI).