How-to · VS Code for Mac

How to sync settings across Macs in VS Code on Mac: Settings Sync steps for 2026

To sync settings across Macs in VS Code, turn on Settings Sync from the Manage gear menu and sign in with a Microsoft or GitHub account. Use that same account on every Mac, then pick a conflict option when VS Code asks, which often means keeping the cloud copy.

Updated Checked against VS Code desktop app on macOS, Apple silicon and Intel Macs10 minEasy

Developer at a MacBook learning how to sync settings across Macs in VS Code
Setting up a second Mac with the same editor · Image by StockSnap from Pixabay

Quick answer

  • Turn on Settings Sync from the Manage gear menu, then choose Backup and Sync Settings.
  • Sign in with the same Microsoft or GitHub account on every Mac.
  • On the second Mac, Accept Remote keeps the cloud copy and overwrites that Mac's local settings.
  • Extensions do not sync to SSH, dev container, or WSL windows, so install those again there.
  • To stop syncing on one Mac, choose Settings Sync: Turn Off and leave the cloud box unchecked.

What you need

  • A Microsoft or GitHub account, not GitHub Enterprise Server or Microsoft Sovereign Cloud
  • A current stable build of VS Code, with 1.145 the latest release
  • A working browser on each Mac for the sign-in step
  • Both Macs online during the first sync

How to Sync VS Code settings between two Macs in VS Code on a Mac

  1. Open Settings Sync on your first Mac

    Manage (gear icon)Backup and Sync Settings

    Open VS Code on the Mac whose settings you trust most. Click the gear icon at the bottom left, the Manage menu. Choose Backup and Sync Settings from the list.

    Tip: The Accounts icon at the bottom of the Activity Bar leads to the same command.

  2. Pick the categories to sync

    Turn on the categories you want on every Mac, such as Settings, Keyboard Shortcuts, Snippets, and Extensions. Leave out anything that only makes sense on one machine.

    Tip: You can change categories later with Settings Sync: Configure.

  3. Sign in with a Microsoft or GitHub account

    Sign in

    Select Sign in and pick an account type. Your browser opens. Finish the sign-in there, then return to VS Code and wait for sync to start.

    Tip: Use the same account on every Mac. A second account starts an empty cloud copy.

  4. Confirm sync is on

    Manage (gear icon)Settings Sync is On

    Open the Manage gear menu again. The entry Settings Sync is On appears in the menu. That entry means this Mac is syncing.

    Tip: If the entry is missing, the sign-in did not finish. Run the sign-in again.

  5. Set up the second Mac

    On the second Mac, open VS Code and repeat the first four steps with the same account. A conflict prompt appears if the cloud copy and this Mac differ.

    Tip: Sign in before you change any settings on the second Mac.

  6. Resolve the conflict prompt

    Choose Accept Remote or Replace Local to take the cloud copy. Choose Accept Local or Replace Remote to keep this Mac. Choose Show Conflicts to edit both sides, then select Complete Merge.

    Tip: Read the prompt twice. Each choice overwrites data on one side.

  7. Change categories later

    Manage (gear icon)Settings Sync: Configure

    Open the Manage gear menu and select Settings Sync: Configure. Check or clear categories, then confirm. The change applies to this Mac.

  8. Open your settings file

    ⇧⌘P

    Press ⇧⌘P, type Preferences: Open User Settings (JSON), and press Return. VS Code opens the settings file so you can review or copy it.

    Tip: Copy this file before you turn off sync for every device.

  9. Open Settings on a Mac

    CodeSettingsSettings⌘,

    Press ⌘, to open the Settings editor. Search for settingsSync.keybindingsPerPlatform here if you want one shortcut set across operating systems.

    Tip: The official docs show File > Preferences, which is the Windows and Linux layout.

  10. Test the sync

    Change the editor font size on your first Mac. Open VS Code on the second Mac, wait a short moment, and check that the font size matches.

    Tip: If nothing changes, check that Settings Sync is On appears on both Macs.

  11. Turn off sync on one Mac

    Manage (gear icon)Settings Sync is OnSettings Sync: Turn Off

    Open the Manage gear menu and select Settings Sync is On. Choose Settings Sync: Turn Off, then select Turn off. Leave the cloud box unchecked to keep data for your other Macs.

    Tip: Checking the cloud box clears the data for every device.

If you work on a laptop at home and another Mac at the office, you know the problem. The font is too small on one machine. The theme is wrong on the other. Your shortcuts work on one Mac and not the second. VS Code fixes this with a built-in feature called Settings Sync. It stores your choices in your Microsoft or GitHub account, then applies them on every Mac where you sign in.

Developer at a MacBook learning how to sync settings across Macs in VS Code
Setting up a second Mac with the same editor · Image by StockSnap from Pixabay

Many developers already use VS Code. In the 2025 Stack Overflow Developer Survey, 75.9% of respondents said they use it, though that figure covers general use, not sync. This guide walks through the desktop app on macOS. It covers the first setup, the second Mac, the conflict prompt, and the controls you need later. The official docs do not include Mac screenshots, so if a label looks different on your build, search for Settings Sync in the Command Palette.

What Settings Sync copies on a Mac

Settings Sync works by category. You choose which categories travel with your account, and each category syncs on its own. The official docs list these: Settings, Keyboard Shortcuts, Snippets, Tasks, MCP Servers, UI State, Extensions, Profiles, and Prompts and Instructions. Tasks sync only at the user level, so a task tied to one project stays on the machine where you made it.

  • Settings: your user settings, such as font size, word wrap, and editor behavior.
  • Keyboard Shortcuts: any custom key bindings you saved in the Keyboard Shortcuts editor.
  • Snippets: the snippet files you wrote for each language.
  • Extensions: the extensions you installed, which install again on your other Mac.
  • Profiles: named sets of settings you switch between, with up to 20 profiles.
  • Prompts and Instructions: your saved prompts and instructions for AI features.

Not everything belongs in the cloud. If one value in your settings points to a path that exists only on one Mac, sync copies that path everywhere. Edit the value so it works on both Macs, or remove it from your user settings.

Before you start: account, version, and second Mac

  • A Microsoft or GitHub account. GitHub Enterprise Server and Microsoft Sovereign Cloud accounts are not supported.
  • A current stable build of VS Code. The latest stable release is 1.145, released November 4, 2026.
  • A working browser on each Mac, because the sign-in finishes in the browser.
  • Internet access on both Macs during the first sync.

To check your build, open the Code menu and choose About Visual Studio Code. If you are behind the latest release, update first. Then decide on the account before you turn anything on. Use one account for every Mac. Each account keeps its own cloud copy, so a second account gives you a second, empty set of settings.

Turn on Settings Sync on your first Mac

Start on the Mac whose settings you trust most. The first Mac seeds the cloud copy, so its settings become the starting point for every other machine. If you start on a fresh install, you will push default settings to your other Mac. Check the editor first, then turn sync on.

Sign-in is the only step that leaves VS Code. Everything else happens inside the editor, so keep the browser window handy until the sign-in completes.

Laptop screen with a code editor open, the setup you copy between two Macs
Coding on a laptop in a home office · Image by yatsusimnetcojp from Pixabay

Turn on Settings Sync on your second Mac

Say your work Mac uses a bigger font than your home Mac. You turn on sync at home with the same account. VS Code finds data in the cloud that differs from the data on this Mac, so it asks what to do. Your choice decides which version wins. Read the prompt before you click anything.

Conflict options from the Settings Sync docs
ChoiceWhat it doesPick it when
Accept Local, or Replace RemoteKeeps the settings on this Mac and writes them to the cloudThis Mac holds the settings you want everywhere
Accept Remote, or Replace LocalKeeps the cloud settings and overwrites this MacThe cloud copy is the one you want
Show ConflictsOpens both sides so you can edit, then select Complete MergeYou want some values from each Mac

For a first sync on a second Mac, Accept Remote is usually the safest choice. It keeps the cloud copy you built on the first Mac and drops the defaults on this one. Use Show Conflicts when you want a mix. You might keep the theme from the cloud and the keyboard shortcuts from this Mac.

Choose which categories sync on each Mac

Open the Manage gear menu and choose Settings Sync: Configure to change categories. The change applies to that Mac only. Keep the categories the same on both machines unless you have a clear reason. If one Mac skips a category, changes in that category never reach it.

Keyboard shortcuts across Macs, Windows, and Linux

Keyboard shortcuts sync per operating system by default. Two Macs with the same account share one set, so nothing special happens there. The split matters only when you also use Windows or Linux with that account. Those machines keep their own set, so a Mac shortcut does not overwrite a Windows one.

To share one set across every system, clear the setting named settingsSync.keybindingsPerPlatform. Open the Settings editor with ⌘, and search for that name. Check your shortcuts afterward, because a binding that works on Windows may use a key your Mac keyboard lacks.

Extensions: what syncs and what does not

Extensions sync to normal local windows. They do not sync to or from remote windows, such as SSH, dev containers, or WSL. If you open a project on a server, install the extensions there again. Installing on your Mac does not put them on the server.

A useful habit is to install new extensions on your main Mac first. After a short wait, open the Extensions view on the second Mac. If something is missing, open the Manage gear menu and confirm that the Settings Sync is On entry is there.

Size limits: 100 KB per category and 20 profiles

Settings, keyboard shortcuts, and user tasks must each be 100 KB or smaller. If a category goes over that limit, VS Code disables that category. The symptom is one category that stops updating while everything else keeps working. Trim the file, then turn the category back on.

Profiles have a cap of their own. The Profiles category syncs up to 20 profiles. If you keep more than 20 profiles, remove the ones you no longer use before you expect all of them to sync.

1.145

Latest stable VS Code release, published November 4, 2026

VS Code Updates

100 KB

Size limit for the Settings, Keyboard Shortcuts, and Tasks categories

Settings Sync: Visual Studio Code Docs

20

Profiles the Profiles category can sync

Settings Sync: Visual Studio Code Docs

75.9%

Share of 2025 Stack Overflow respondents who use VS Code, general use not sync

Stack Overflow Developer Survey 2025: Technology

Stable and Insiders keep separate sync

Stable and Insiders use separate sync services by default. If you run both builds on one Mac, a setting you change in Stable will not show up in Insiders. To share data, select the Stable sync service when you turn on sync in Insiders. Pick one build for daily work to avoid surprises.

How to turn off Settings Sync on one Mac

You might turn sync off on an old laptop you are retiring, or on a shared machine. Turning it off on one Mac does not remove the cloud copy by default. Your other Macs keep syncing with that data.

  1. Open the Manage gear menu and select Settings Sync is On.
  2. Choose Settings Sync: Turn Off, then select Turn off.
  3. Leave the box for clearing cloud data unchecked unless you want to remove data everywhere.

Fix Cannot sign in and other Settings Sync errors

One error that shows up in third-party troubleshooting notes is Turning on Settings Sync failed: Cannot sign in. Those notes suggest running Settings Sync: Reset Extension, then Accounts: Remove Account, then fully quitting and restarting VS Code. That advice comes from a third-party site, not from Microsoft, so try the basic checks first.

  • Confirm the account is a Microsoft or GitHub account, not an unsupported type.
  • Quit VS Code fully with ⌘Q, then reopen it and try the sign-in again.
  • Make sure the browser sign-in finished. VS Code waits for that step.
  • If problems persist, launch from Terminal with the verbose flag and read the logs described below.

The official docs say extra keychain setup is usually unnecessary on macOS. If problems continue, start VS Code from Terminal with `code --verbose --vmodule='*/components/os_crypt/*=1'`. The code command must be installed first, so install the code command in VS Code on Mac if you have not. Then open the Log (Settings Sync) and Account output channels from the View menu and read the messages.

Settings Sync and VS Code for the Web

If you open VS Code for the Web at vscode.dev, the rules change a little. Installed extensions live in the browser's local storage, according to the official web page. That page recommends Settings Sync to keep extensions consistent across instances. It gives no menu labels for turning sync on in the web version, so the desktop steps above are the ones to follow.

Mistakes people make when syncing Macs

  • Signing in with two different accounts. Each account keeps its own cloud copy, so the Macs never meet.
  • Starting on a fresh Mac and choosing the option that replaces the cloud copy. That erases the good settings.
  • Expecting extensions to follow you into an SSH or dev container window.
  • Turning on sync in Insiders and expecting Stable settings to appear without selecting the Stable sync service.
  • Letting one category grow past 100 KB, then wondering why it stopped syncing.

A quick test that sync works

Make one small change on your first Mac, such as the editor font size. Open VS Code on the second Mac, wait a short moment, and look for the change. If it does not appear, open the Manage gear menu and confirm that the Settings Sync is On entry is there.

Person with coffee and a laptop, switching between a home Mac and an office Mac
Switching between a home and office Mac · Image by Daria-Yakovleva from Pixabay

What to do next after sync works

With the same settings on both Macs, set up the tools you use every day. Start with Git, using how to set up Git in VS Code on Mac. If you use the built-in terminal, set the default terminal shell in VS Code on Mac, then check that the shell matches on the second Mac.

Install new extensions once on your main Mac. The install an extension in VS Code on Mac steps cover the details. For the shortcuts you use most, the command palette guide shows how ⇧⌘P finds almost anything.

VS Code shortcuts for this on Mac

VS Code keyboard shortcuts on Mac
To do thisPress
Command Palette, search Settings Sync⇧⌘P
Settings editor⌘,
Keyboard Shortcuts editor⌘K⌘S
Quit VS Code before retrying sign-in⌘Q

If it does not work

Turning on Settings Sync failed: Cannot sign in
Check the account type, quit VS Code with ⌘Q, reopen it, and retry. A third-party guide suggests resetting the extension and removing the account, but that is not an official fix. Try the basics first.
A settings category stopped syncing
Check the 100 KB limit for Settings, Keyboard Shortcuts, and Tasks. A category over the limit is disabled. Trim the file, then turn the category back on with Settings Sync: Configure.
Extensions are missing in an SSH or dev container window
Settings Sync does not reach remote windows. Open the remote window and install the extensions there again.
Shortcuts differ between my Mac and my Windows PC
Shortcuts sync per operating system by default. To share one set, clear settingsSync.keybindingsPerPlatform, then check for keys your Mac keyboard lacks.
Stable settings do not appear in Insiders
Stable and Insiders use separate sync services. When you turn on sync in Insiders, select the Stable sync service to share the data.
Sign-in keeps failing on a second Mac
Confirm both Macs use the same account type and finish the browser step. Then quit VS Code fully, reopen it, and try again.

Faster with Lazur

Do it faster: ask Lazur while you are in VS Code

Hold ⌥ ⌘ and say what you want. Lazur sees your VS Code window. Lazur guides you one click at a time and waits for each click.

  • 1

    Hold ⌥⌘ and talk

  • 2

    Lazur guides you one click at a time and waits for each click.

  • 3

    You stay in VS Code. Nothing to copy into a chat window.

Free for 3 days, then $18/month. Download for Mac

You say“Walk me through turning on Settings Sync.”

Lazur · walks you through itLazur points at each control and waits for your click. It does not click for you.

VS Code
ExplorerSearchManage gear menuClick here firstSource ControlRun

Questions people ask

Does this work on every Mac?

The steps here use the VS Code desktop app on macOS. The official docs describe the same sign-in and sync flow on every platform, so the labels should match on any Mac build. The docs have no Mac screenshots, so check each label against your own screen.

Can I sync without a Microsoft or GitHub account?

No. Settings Sync supports Microsoft and GitHub accounts only. GitHub Enterprise Server and Microsoft Sovereign Cloud accounts are not supported, so use a standard account on every Mac.

Does Settings Sync copy my extensions?

Yes, when the Extensions category is on. Sync installs them on your other Mac. Extensions do not sync to or from remote windows such as SSH, dev containers, or WSL, so install those again on the remote side.

Is there a keyboard shortcut to turn on Settings Sync?

The official docs do not list a Mac shortcut for Settings Sync itself. Start from the Manage gear menu, or press ⇧⌘P and type Settings Sync to find the commands.

How do I stop syncing on one Mac without losing data everywhere?

Choose Settings Sync: Turn Off from the Manage gear menu, then select Turn off. Leave the cloud box unchecked, so the data stays in your account for your other Macs.

Why did one settings category stop syncing?

Check the size limit first. Settings, keyboard shortcuts, and user tasks must each be 100 KB or smaller. A category over that limit gets disabled, so trim the file and remove what you do not need.

Do Stable and Insiders share settings?

Not by default. They use separate sync services. To share data, select the Stable sync service when you turn on sync in Insiders.

Will my keyboard shortcuts match on Windows?

Keyboard shortcuts sync per operating system by default, so a Windows machine keeps its own set. Clear settingsSync.keybindingsPerPlatform if you want one set on every system.

Sources

  1. Settings Sync: Visual Studio Code Docs · Microsoft · checked 2026-11-09
  2. Key Bindings for Visual Studio Code · Microsoft · checked 2026-11-09
  3. User and workspace settings: Visual Studio Code Docs · Microsoft · checked 2026-11-09
  4. Visual Studio Code for the Web · Microsoft · checked 2026-11-09
  5. VS Code Updates · Microsoft · checked 2026-11-09
  6. Stack Overflow Developer Survey 2025: Technology · Stack Overflow · checked 2026-11-09
  7. Fix VS Code Settings Sync Failed: Cannot sign in · errornotes.dev (third-party) · checked 2026-11-09

Try Lazur free for 3 days

Hold a key and ask. Lazur sees your screen, points at the button and talks you through it, in any Mac app. No credit card.