VS Code user vs workspace settings starts with your active profile

Put personal preferences in your active profile's user settings and supported project-specific configuration in workspace settings. Based on official documentation (checked 5 Nov 2026).

VS Code describes user settings as applying globally to instances you open, with a profile boundary: switching profiles applies the selected profile's user settings. Workspace settings apply only when their workspace is opened. A preference can therefore belong across your projects within a profile without becoming configuration for each project.

For a single-folder workspace, the project settings file is .vscode/settings.json under the root folder. Multi-root workspace settings instead live inside the workspace configuration file. Choosing workspace scope and choosing to share that configuration through source control are separate decisions.

Choice:
User settings
Documented scope:
Personal settings within the active profile
Precedence, sharing and limits:
Comparable ordinary workspace settings take precedence where supported; language-specific settings, policy and merging qualify the result
Choice:
Workspace settings
Documented scope:
The workspace when opened
Precedence, sharing and limits:
Project-specific; application-wide update and security settings cannot be overridden here
Choice:
Settings Sync
Documented scope:
Eligible user preferences
Precedence, sharing and limits:
Machine, machine-overridable and explicit exclusions apply; settings must be 100 KB or smaller
Choice:
Git-shared workspace settings
Documented scope:
Intentionally tracked project configuration
Precedence, sharing and limits:
Single-folder settings use .vscode/settings.json; multi-root settings use the workspace configuration file
VS Code user vs workspace settings scope choices
Documentation-based summary card: personal scope, project scope and sharing. Source: VS Code settings, VS Code Settings Sync, checked 5 Nov 2026

Comparable workspace values win; language settings and policy qualify the result

Workspace values take precedence over comparable ordinary user values where workspace scope is supported. That rule doesn't mean every workspace entry replaces every user entry. Language-specific editor settings override non-language-specific editor settings, even when the latter have narrower scope. VS Code explicitly gives language-specific user settings overriding non-language-specific workspace settings as an example.

Administrator policy values always override other setting values. Primitive and array values are overridden according to precedence, while object-valued settings merge. We would check these distinctions before treating a workspace entry as a complete replacement.

Application-wide settings related to updates and security cannot be overridden at workspace scope. The @haspolicy filter finds settings controlled by your organization.

  1. Select Preferences: Open Workspace Settings in the Command Palette to open workspace settings.
  2. Alternatively, select the Workspace tab if you're already in the Settings editor.
  3. Select Preferences: Open Workspace Settings (JSON) in the Command Palette to access the JSON configuration.

Note: VS Code documents that changes apply directly as you make them. Choose the intended scope before editing; a configured entry alone doesn't settle the result of language-specific settings, policy or object merging.

Finish Settings Sync setup with data selection and account authentication

Open Backup and Sync Settings…, choose your data and complete sign-in to follow the documented setup. Opening the menu alone isn't the whole procedure. Settings Sync supports Microsoft and GitHub accounts, but GitHub Enterprise Server and Microsoft Sovereign Cloud accounts are unsupported.

This setup concerns eligible user preferences, rather than the intentional source-control sharing of workspace configuration. I'd make the account and data choices explicitly instead of assuming that selecting user scope makes every setting eligible for synchronization.

  1. Select Backup and Sync Settings… from the Manage gear menu or the Accounts menu at the bottom of the Activity Bar.
  2. Select the data that you want to synchronize.
  3. Select Sign in, then select a supported Microsoft or GitHub account.
  4. If you aren't already signed in with the selected account, complete the authentication flow in the browser.

After sign-in, VS Code documents automatic merging of local and cloud data followed by background synchronization. If merging fails, it prompts you to resolve conflicts. This is documented behavior, rather than evidence of a completed synchronization run.

  1. If prompted about conflicts, select Show Conflicts to compare local and remote data in the diff editor.
  2. Edit the merge result.
  3. Select Complete Merge.

Exclude individual preferences and keep settings within 100 KB

Use the setting's actions or settingsSync.ignoredSettings when an individual user preference should stay outside Settings Sync. The Settings category already excludes settings with machine or machine-overridable scope, along with settings you explicitly exclude. User scope and synchronization eligibility are therefore different properties.

Category selection is another control. Run Settings Sync: Configure… or select Settings Sync is On > Settings Sync: Configure… from the Manage gear menu to configure the categories being synchronized. Use category configuration for that broader choice and an individual exclusion for a particular user setting.

Settings, keyboard shortcuts and user tasks must each be 100 KB or smaller. These are separate limits, not a pooled allowance. If data exceeds a limit, Settings Sync reports an error and disables an affected category that was already synchronizing. A setting's eligibility doesn't remove the settings category's size requirement.

  1. For category choices, run Settings Sync: Configure… or use Settings Sync is On > Settings Sync: Configure… in the Manage gear menu.
  2. For a particular user setting, use its actions in the Settings editor or add it to settingsSync.ignoredSettings.
  3. To stop synchronization on the current device, select Settings Sync is On > Settings Sync: Turn Off from the Manage gear menu, then select Turn off.
Settings Sync setup and individual exclusion choices
Documentation-based summary card: complete browser authentication if needed; machine-scope and explicit exclusions apply. Source: VS Code Settings Sync, checked 5 Nov 2026

Share Git rules deliberately and untrack checked-in files only intentionally

Track intended project settings for collaboration, commit .gitignore for shared exclusion rules and use .git/info/exclude for repository-local exclusions. A shared settings file carries project configuration; an ignore file carries exclusion rules.

In a single-folder workspace, adding .vscode/settings.json to source control is VS Code's documented project-sharing path. GitHub documents committing .gitignore so people cloning the repository receive its rules. Rules in .git/info/exclude aren't checked in and apply only to your local repository.

Repository choice:
Track project settings
Documented effect:
Shares intended single-folder .vscode/settings.json configuration
Choose it when:
Collaborators should receive the project configuration
Repository choice:
Commit .gitignore
Documented effect:
Shares ignore rules with people cloning the repository
Choose it when:
The exclusion belongs to shared repository rules
Repository choice:
Use .git/info/exclude
Documented effect:
Keeps exclusion rules local and uncommitted
Choose it when:
An untracked file needs exclusion only in this local repository
Repository choice:
Use ~/.config/git/ignore
Documented effect:
Applies global exclusions across repositories on your computer
Choose it when:
The exclusion belongs across your repositories

GitHub identifies ~/.config/git/ignore as the default global ignore location. You may need to create the directory and file if they don't exist.

Note: An ignore rule doesn't stop tracking an already checked-in file. GitHub requires untracking before adding the rule. I'd treat that as an intentional repository tracking change, rather than a private way to hide edits to a file the project still tracks.

  1. Decide whether the exclusion should be shared, repository-local or computer-wide.
  2. If the file is already checked in, decide whether you intentionally want to change its repository tracking.
  3. Only for that intentional change, use git rm --cached FILENAME, replacing FILENAME with the intended file.
  4. Add the ignore rule to the chosen ignore file.
  5. Commit .gitignore if people cloning the repository should receive its rules.

Use @modified and Reset Setting to inspect configured preferences

Use @modified to find configured settings and Reset Setting for the documented individual reset procedure. The filter includes a setting when its value differs from the default or when it's explicitly set in the respective settings JSON file. Appearing under @modified therefore doesn't necessarily mean a value differs from the default.

A colored bar on the left identifies a modified setting. Open the Settings editor through File > Preferences > Settings, and select the Workspace tab when inspecting workspace settings. Keep the active profile in mind when examining user settings.

  1. Open File > Preferences > Settings.
  2. Select the Workspace tab if you're inspecting workspace settings.
  3. Enter @modified in the search bar to find configured settings.
  4. Look for the colored bar on the left of a modified setting.
  5. To reset an individual setting, hover over it, click its gear icon and select Reset Setting.

For the default reference, run Preferences: Open Default Settings (JSON) from the Command Palette. It opens read-only defaultSettings.json. Change configured values through the Settings editor or settings.json instead. We would inspect the relevant scope before resetting, because language-specific settings, policy and object merging still qualify how configured values interact.