How do I migrate VS Code to another computer?

To move VS Code to a new computer, do the following steps:
  1. Run the command --list-extensions > extensions.txt in Command Prompt to produce a list of installed extensions.
  2. You can copy settings from %APPDATA%\Code\User (on Windows) or ~/.config/Code/User (on macOS/Linux).
  3. If you choose, you can sync your settings on GitHub using Settings Sync (this is optional).
  4. Once on the new PC, use code to install extensions --install-extension <extension-name> and upload your settings.
 
Back
Top