Optional

Sync Your VS Code Setup

On Windows, turn on Settings Sync with a GitHub account to sync your VS Code settings, extensions, and other setup when you reinstall VS Code or use another Windows PC.

What Settings Sync is

Settings Sync automatically synchronizes selected preferences between Windows PCs signed in with the same GitHub account.

In VS Code Settings Sync, you can choose which of the following items to synchronize:

  • Settings
  • Keyboard Shortcuts
  • Snippets
  • Tasks
  • MCP Servers
  • UI State
  • Extensions
  • Profiles
  • Prompts and Instructions

Turn on Settings Sync with GitHub

  1. Open the Command Palette with Ctrl+Shift+P.
  2. Run Settings Sync: Backup and Sync Settings....
  3. Review the categories to sync, then select Sign in.
  4. In the account picker, choose Sign in with GitHub.
  5. Finish the GitHub sign-in flow in the browser and return to VS Code.

The screenshots below are macOS examples; use the same commands and sync categories on Windows.

Run Settings Sync: Backup and Sync Settings... from the Command Palette. It is the second result in this example; the highlighted Help: Settings Sync opens help.

macOS VS Code Command Palette showing Settings Sync Backup and Sync Settings below the selected Help result

Review sync options

Review the categories selected by default. Clear any category you do not want to sync, and leave the others selected.

To change the selected categories later, run Settings Sync: Configure... from the Command Palette.

macOS VS Code Settings Sync categories with default options checked

After selecting Sign in, choose Sign in with GitHub.

Example VS Code account picker with Sign in with GitHub selected

Restore the same setup on another machine

On another Windows PC, install VS Code and turn on Settings Sync with the same GitHub account to synchronize the selected categories.

When you turn on Settings Sync, VS Code automatically merges local and cloud data. If it cannot resolve a conflict, synchronization pauses and prompts you to resolve it. Use Show Conflicts to compare both versions before completing the merge.

References

Image preview