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:
1. Export of your configuration and extensions
2. Share it with coworkers and teams. You can update the configuration. Their settings will auto updated.
Manual
1. 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.
2. On machine A:
Unix:
Windows (PowerShell, e. g. using Visual Studio Code's integrated Terminal):
3. Copy and paste the echo output to machine B
Sample output:
Please make sure you have the code command line installed. For more information, please visit Command Line Interface (CLI).