By Kim · Facts checked 5 Nov 2026 · Settings scope, sync setup and Git ignore rules checked on VS Code and GitHub documentation
It depends: Use your active profile's user settings for personal preferences and supported workspace settings for project configuration.
Good fit: This fits developers deciding which preferences should follow their profile and which configuration belongs to collaborators.
Not a fit: It doesn't prove effective values or synchronization on your machine. Language settings, policy and object merging qualify precedence; synchronized settings have a separate 100 KB limit.
| Personal scope | User settings apply across projects within the active profile. |
|---|---|
| Project scope | Workspace settings apply when opened and override comparable ordinary user settings where supported. |
| Override boundaries | Language-specific user settings can override ordinary workspace settings; policy wins and object values merge. |
| Workspace storage | Single-folder: .vscode/settings.json. Multi-root: workspace configuration file. |
| Synchronization | Machine, machine-overridable and explicitly excluded user settings aren't synchronized. |
| Settings category limit | 100 KB or smaller; keyboard shortcuts and user tasks have separate limits. |
| Git exclusions | Committed .gitignore rules are shared; .git/info/exclude rules stay local. Ignoring a checked-in file requires intentional untracking. |
Use user settings for personal preferences within your active profile, and workspace settings for project-specific configuration where supported. The useful distinction in VS Code user vs workspace settings is where a preference belongs: language-specific settings, organizational policy and object merging qualify which values take precedence.
Settings Sync and Git answer different sharing questions. Sync carries eligible user preferences; source control is the documented sharing path for project settings. I'd settle scope before choosing either. The Git detail is worth checking early: shared .gitignore rules and local .git/info/exclude rules have different recipients, but neither privately hides edits to an already tracked file. Ignoring that file requires an intentional repository tracking change.
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 |

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.
- Select Preferences: Open Workspace Settings in the Command Palette to open workspace settings.
- Alternatively, select the Workspace tab if you're already in the Settings editor.
- 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.
- Select Backup and Sync Settings… from the Manage gear menu or the Accounts menu at the bottom of the Activity Bar.
- Select the data that you want to synchronize.
- Select Sign in, then select a supported Microsoft or GitHub account.
- 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.
- If prompted about conflicts, select Show Conflicts to compare local and remote data in the diff editor.
- Edit the merge result.
- 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.
- For category choices, run Settings Sync: Configure… or use Settings Sync is On > Settings Sync: Configure… in the Manage gear menu.
- For a particular user setting, use its actions in the Settings editor or add it to settingsSync.ignoredSettings.
- 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.

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.
- Open File > Preferences > Settings.
- Select the Workspace tab if you're inspecting workspace settings.
- Enter @modified in the search bar to find configured settings.
- Look for the colored bar on the left of a modified setting.
- 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.
What to watch for: VS Code scope and configured-value exceptions
- NOTE: Workspace scope cannot override application-wide settings related to updates and security.
- NOTE: A language-specific user setting can override an ordinary workspace setting; policy overrides other values and object settings merge.
- NOTE: An explicitly configured default value can appear under @modified.
Exclude one VS Code preference or apply Git rules computer-wide
- Exclude a preference instead of stopping synchronization: Use a setting's actions or settingsSync.ignoredSettings when only that user preference should be excluded.
- Use computer-wide Git exclusions: Use ~/.config/git/ignore when the exclusion belongs across repositories on your computer, subject to the already-tracked-file requirement.
What to have ready: VS Code scope, account and sharing decisions
- Choose the active profile or opened workspace according to who needs the preference.
- Check workspace support, language-specific settings, policy and object merging before expecting an override.
- Identify single-folder .vscode/settings.json or the multi-root workspace configuration file.
- For Settings Sync, choose data, sign in with a supported account and complete browser authentication if needed.
- Decide whether project configuration and exclusion rules should reach collaborators.
- Before ignoring a checked-in file, explicitly decide whether to change repository tracking.
- Current live documentation wasn't independently retrieved; the documented facts were checked in official-page snapshots dated 5 Nov 2026.
- Effective setting values, successful cross-machine synchronization and collaborator receipt weren't verified in an actual environment.
- Successful reset or restoration wasn't verified in an actual environment.
FAQ
Should this setting follow my active profile across projects or apply only to this project?
Choose user settings for a preference belonging across projects within your active profile. Choose workspace settings for project-specific configuration where that scope is supported.
Which application-wide settings cannot be overridden at workspace scope?
VS Code names settings related to updates and security as examples. It says not all user settings support workspace scope.
Should an ignore rule be shared through .gitignore or kept local in .git/info/exclude?
Commit .gitignore when people cloning the repository should receive the rule. Use .git/info/exclude when the rule should remain local. Neither replaces intentional untracking if the file is already checked in.

Choose the profile or project that should own the preference. Complete sync setup for eligible personal settings and make Git sharing intentional. Use @modified to inspect configured settings before making further changes.
Official sources
- VS Code settings (checked 5 Nov 2026)
- VS Code Settings Sync (checked 5 Nov 2026)
- GitHub ignoring repository files (checked 5 Nov 2026)
- Visual Studio Code (checked 5 Nov 2026)
This guide draws on VS Code settings, VS Code Settings Sync, GitHub ignoring repository files and others (4 pages), and its figures were checked against that text. Facts last checked 5 Nov 2026.