Learn

Sync your config across machines

Antigravity

Get your theme, extensions, and shortcuts on any machine without reconfiguring everything.

Settings Sync is a native VS Code (and Antigravity) feature that synchronizes your preferences, extensions, and shortcuts via a GitHub or Microsoft account. Switch machines and everything is there.

Enabling Settings Sync

Open the Command Palette (Ctrl+Shift+P), type Settings Sync: Turn On... and press Enter.

VS Code asks you to choose an account: GitHub or Microsoft. Both work. Pick the one you already use. A browser window opens for OAuth authentication, you authorize access, and you return to VS Code.

What gets synchronized

By default, Settings Sync synchronizes five categories:

CategoryExamples
SettingsTheme, font size, auto-format on save, tabs vs spaces, etc.
KeybindingsYour custom shortcuts (not the defaults, only your changes).
ExtensionsThe list of installed extensions (not the binaries, just the IDs). On a new machine, VS Code downloads them automatically.
SnippetsYour custom code snippets.
UI StateThe state of certain panels and views (open tabs, etc.).

Force a manual sync

VS Code syncs automatically a few seconds after each change. But you can force an immediate sync:

Open the Command Palette and type Settings Sync: Sync Now.

You can also see sync activity in the Settings Sync: Show Log menu.

On a new machine

On any fresh VS Code installation:

  1. Open the Command Palette.
  2. Type Settings Sync: Turn On....
  3. Connect the same GitHub or Microsoft account.
  4. VS Code immediately downloads your settings and shortcuts, and starts downloading your extensions.

No manual configuration needed. Your themes, shortcuts, and extensions are restored within a few minutes.

VS Code Docs - Settings Sync

Check off steps to unlock what comes next

Back to course