VS Code That Follows You: Sync, Profiles and Shortcuts

Set up Visual Studio Code once and get the same themes, extensions and shortcuts on every PC, plus separate profiles for different jobs.

FREE$34.95UpdateStar PremiumShare a link to claimNew laptop, fresh Windows, and you open Visual Studio Code for the first time. Light theme. Default font. None of your extensions. Your carefully tuned keyboard shortcuts are gone, and the snippet you type twenty times a day no longer exists. Rebuilding all that by hand eats a whole afternoon.

It does not have to. VS Code (currently version 1.144) has two built-in features that make your setup portable: Settings Sync, which keeps the same configuration on every machine, and Profiles, which keep different setups apart on one machine. Add a handful of shortcuts that work the same everywhere, and any VS Code window feels like home within a minute.

Step 1: Switch on Settings Sync

Settings Sync stores your configuration in the cloud, tied to a Microsoft or GitHub account. You turn it on once per machine.

VS Code Manage menu with the Backup and Sync Settings entry

  1. Click the Manage gear at the bottom of the Activity Bar (or the Accounts icon just above it).
  2. Choose Backup and Sync Settings....
  3. Select what you want to synchronize (more on that in Step 2).
  4. Click Sign in and pick Microsoft or GitHub. If you are not signed in yet, a browser window completes the login.

From now on, VS Code merges your local and cloud data and keeps syncing in the background. On the new laptop you repeat the same four steps with the same account, and everything lands where it belongs.

If the local data and the cloud copy disagree, sync pauses and asks you to decide. Accept Local or Replace Remote keeps what is on this machine and overwrites the cloud. Accept Remote or Replace Local does the opposite. Show Conflicts opens a diff editor where you can merge by hand and finish with Complete Merge. On a brand-new machine with nothing configured yet, the remote side is almost always the one you want.

Step 2: Decide what travels with you

Not everything has to sync. Run Settings Sync: Configure... from the Command Palette, or go to Manage > Settings Sync is On > Settings Sync: Configure....

Settings Sync Configure list with the data categories and the OK button

You can tick or untick these categories: Settings, Keyboard Shortcuts, Snippets, Tasks, MCP Servers, UI State, Extensions, Profiles and Prompts and Instructions. Confirm with OK.

A few details save you surprises later:

  1. Settings that only make sense on one machine (settings with machine scope) are never synced.
  2. Keyboard shortcuts are synced separately per operating system by default. If you use the same shortcuts on Windows and a Mac, clear the setting settingsSync.keybindingsPerPlatform.
  3. Extensions are not synced into remote windows, for example when you work over SSH, inside WSL or in a dev container.
  4. Workspace tasks stay in the project. Only user-level tasks travel.

Step 3: Keep a few settings local

Maybe your work PC needs a different font size than your 13-inch laptop, or one extension only makes sense on a single machine. You can exclude both.

  1. Open the Settings editor with Ctrl+,, find the setting and use its actions (the gear icon) to exclude it from sync. Behind the scenes, this adds it to settingsSync.ignoredSettings.
  2. For an extension, open the Extensions view with Ctrl+Shift+X and use the extension's actions to exclude it there. That fills settingsSync.ignoredExtensions.

Step 4: Build profiles for different jobs

Sync makes one setup portable. Profiles let you keep several setups side by side, for example a lean one for writing Markdown, one for Python and one for live demos with a huge font. Each profile has its own settings, extensions, shortcuts, snippets, tasks and UI layout.

  1. Open the Profiles editor via File > Preferences > Profiles or the Manage gear.
  2. Click New Profile.
  3. Enter a name and pick an icon.
  4. Under Copy from, choose an existing profile, a template or None for an empty start.
  5. In Contents, decide per category whether it should come from the Default profile or start empty.
  6. Click Preview to try it in a new window, then Create.

VS Code Profiles editor with the New Profile button, the Copy from list and the Create button The Profiles editor, shown here on macOS. The Windows version has the same layout.

The active profile shows up in the title bar and on the Manage gear, either as its icon or as a badge with its first two letters. Switch at any time with Profiles: Switch Profile in the Command Palette. Handy detail: a profile gets linked to the folder you used it in, so opening that project later brings the right setup back automatically.

If one setting or extension should be identical everywhere, use Apply Setting to all Profiles in the Settings editor or Apply Extension to all Profiles in the Extensions view. Settings Sync handles up to 20 profiles, as long as Profiles is ticked in Step 2.

Step 5: Share a profile with your team

Profiles can leave your machine without any account sync. In the Profiles editor, open the overflow menu (...) of a profile and choose Export.... You can save it as a GitHub gist or as a local file with the extension .code-profile. A colleague imports it through the arrow next to New Profile and Import Profile..., reviews the contents and clicks Create. That is a quick way to hand a new team member the exact extensions and formatting rules your project expects.

Step 6: Undo a bad sync

You broke your settings and the mistake already synced to every machine? There is a way back. Run Settings Sync: Show Synced Data from the Command Palette to see the remote backups. VS Code keeps the latest 20 versions of each data category in the cloud. Local backups live for 30 days. Settings Sync: Open Local Backups Folder shows them as timestamped JSON files.

The same view lists your Synced Machines. You can rename them or turn off sync on an old laptop remotely, which is useful after selling or handing it on. To stop syncing entirely, choose Manage > Settings Sync is On > Settings Sync: Turn Off.

Step 7: Learn the shortcuts that work everywhere

A synced setup is only half the comfort. These default shortcuts work in every fresh VS Code install on Windows, so your hands feel at home even before sync finishes:

  1. Ctrl+Shift+P opens the Command Palette. Every command lives here, and it shows each command's shortcut next to it.
  2. Ctrl+P is Quick Open for files. Press it repeatedly to jump between recently opened files.
  3. Ctrl+D adds the next occurrence of the current selection to a multi-cursor selection. Ctrl+Shift+L grabs all occurrences at once.
  4. Alt+Click places extra cursors wherever you click. Ctrl+Alt+Up and Ctrl+Alt+Down add cursors above or below.
  5. Ctrl+` toggles the integrated terminal, Ctrl+B the sidebar.

Our verdict

Settings Sync plus Profiles is a must for anyone who uses VS Code on more than one PC or juggles different kinds of projects, and it costs nothing. Today, turn on Backup and Sync Settings... on your main machine. Your next new laptop will be ready in minutes, and if a change goes wrong, the synced backups bring yesterday's setup back.

Related on UpdateStar

about author