How to sync Visual Studio Code settings across devices
In Visual Studio Code, choose Backup and Sync Settings… from the Manage gear menu, select what to sync, and sign in with a Microsoft or GitHub account. Sign in with the same account on another device to bring over the selected preferences and extensions.
Enable Settings Sync on the first device
- Open the Manage gear or Accounts menu at the bottom of the Activity Bar and choose Backup and Sync Settings….
- Select the categories you want. To move only user settings and extensions, select those categories and leave the others out.
- Choose Sign in, pick Microsoft or GitHub, and complete authentication in the browser if prompted.
- Return to VS Code and check that the Manage menu shows Settings Sync is On. Existing cloud and local data are merged when possible.
Microsoft’s Settings Sync setup guide
Choose which data to synchronize
You can select user settings, keyboard shortcuts, user snippets, extensions, and other categories. Change your selection later through Settings Sync: Configure…. Keyboard shortcuts sync separately for each operating system by default.
Keep project files and workspace settings with the project. Machine-specific settings are excluded by default. Exclude an individual user setting through its Settings editor menu or settingsSync.ignoredSettings. Extensions in SSH, dev container, and WSL remote windows are outside Settings Sync.
Check the result on a second device
- On the second device, choose Backup and Sync Settings… and use the same account with the same provider.
- Check a category you selected. Compare the user theme in the current profile or the local list of extensions. Use comparable windows because a workspace setting can override a user preference.
- Run Settings Sync: Show Synced Data and expand Synced Machines. If the device does not appear, verify the account and whether sync is on.
Resolve local and cloud conflicts
Synchronization pauses if VS Code cannot merge a conflict. Start by reviewing what differs.
- Show Conflicts opens a diff editor. Keep the wanted changes and choose Complete Merge.
- Accept Local or Replace Remote uses this device’s data and overwrites the cloud data.
- Accept Remote or Replace Local takes the cloud data and overwrites local data. Review the difference first if you are unsure which to keep.
Resolve Settings Sync conflicts
Stop syncing and find previous versions
To stop syncing on this device, choose Settings Sync is On → Settings Sync: Turn Off in Manage. Leave the option to clear cloud data and turn off all devices unchecked.
Use Settings Sync: Show Synced Data to inspect older cloud versions. For local backups, use Sync Activity (Local) in that view or run Settings Sync: Open Local Backups Folder.




