How to migrate VS Code to another computer?

If you want to shift your Visual Studio Code (VS Code) from one computer to another, it's important to first back up your settings, extensions, and keybindings. You can enable the Settings Sync feature in VS Code (sign in with GitHub or Microsoft account), which saves your settings in the cloud. Then just install VS Code on the new computer, sign in, and sync — and everything will be automatically restored, including extensions and themes. A manual method is also possible, in which you copy and paste the settings.json and .vscode folder from the old device to the new one.
 
  1. Settings (settings.json)
  2. Keybindings (keybindings.json)
  3. Installed extensions
  4. Snippets (custom code snippets)
  5. Workspace settings (optional)
 
Easiest way:
  1. Copy your project files to the new PC.
  2. On your old PC, go to:
    C:\Users\YourName\AppData\Roaming\Code
    Copy the whole "Code" folder.
  3. Paste it in the same place on your new PC.
That brings over your settings, extensions, and keybindings.

Or if you use Settings Sync in VS Code (just sign in with GitHub or Microsoft), it handles everything automatically. Super easy.
 
Back
Top