You edit a value in settings.json, save, and nothing changes. Annoying, and almost never a bug.
Underneath, VS Code settings are just JSON key-value preferences that override the editor’s built-in defaults at user, workspace, folder and language scope. Most developers touch a handful of them in the Settings editor or settings.json and leave the rest alone, even though the defaults are written for everybody.
Microsoft’s VS Code documentation, as of November 2026, ranks 11 levels of precedence, from built-in defaults up to administrator policy, and language-specific entries outrank general ones. So a “[json]” block in user settings beats a plain workspace value for the same key. That layering is why a setting you changed sometimes seems to do nothing.
Which VS Code Settings Should You Change First?

Start with auto save, format on save, indentation detection, the minimap and telemetry. They pay off right away. The rest of the list is taste or project-specific.
All of them ship with defaults meant for everybody, and that’s a big group. Stack Overflow’s 2026 Developer Survey puts VS Code at 70.9% of respondents to its development-environment question (down from 75.9% in the 2025 survey), so one default has to suit a very mixed crowd.
| Setting ID | Default | Change to | Skip it if |
|---|---|---|---|
| files.autoSave | Off, explicit save only | afterDelay or onFocusChange | A watcher or dev server rebuilds on every save |
| editor.formatOnSave | false | true, once a default formatter is set | No formatter exists for your language |
| editor.detectIndentation | On, so the open file overrides tab size | false, with editor.tabSize set | You open repos that mix tabs and spaces |
| editor.minimap.enabled | On, right side of the editor | false | You jump around long files with the minimap |
| telemetry.telemetryLevel | all | off | You want early access to features rolled out through A/B experiments |
The last column matters most. None of these changes is universal, and that cell tells you where each one backfires. Rows run by effect on daily work, with privacy at the bottom.
How to Open the Settings Editor and settings.json

Press Ctrl+, (Cmd+, on macOS) for the Settings editor. To edit the file itself, run Preferences: Open User Settings (JSON) from the Command Palette. The shortcut and the File, Preferences, Settings menu land in the same place.
The Settings editor is a form over settings.json, so whatever you change there ends up in the file. The two never disagree.
- Press Ctrl+Shift+P (Cmd+Shift+P on macOS) to open the Command Palette.
- Run Preferences: Open User Settings (JSON).
- Add the key inside the outer braces, for example “files.autoSave”: “afterDelay”, and watch the comma on the line above or below it.
- Save the file. VS Code applies changes as you make them, and a colored bar marks every setting you modified in the Settings editor.
The file location depends on your system.
- On Windows it sits at %APPDATA%\Code\User\settings.json
- macOS keeps it in $HOME/Library/Application Support/Code/User/settings.json
- Linux uses $HOME/.config/Code/User/settings.json
- Workspace settings go in a .vscode folder at the project root
Some settings exist only in JSON. Workbench: Color Customizations is one, and the Settings editor shows an “Edit in settings.json” link for it.
If you live in the file anyway, set workbench.settings.editor to json and Ctrl+, opens settings.json directly. A dedicated guide to opening settings.json in VS Code covers just that one step.
One more detail from the current documentation. The Settings editor opens as a modal overlay by default, and setting workbench.editor.useModal to off puts it back in a regular tab.
Auto Save and Format on Save Settings Worth Changing

Both ship switched off. VS Code wants an explicit action to save, and format on save does nothing until you turn it on. Even then it only behaves predictably once each language has one default formatter.
Auto save modes
Off is the built-in behavior and saves only on an explicit action. afterDelay saves after the pause set in files.autoSaveDelay, which waits 1000 ms by default. onFocusChange saves when focus leaves the editor, and onWindowChange when the whole window loses focus.
I’d pick onFocusChange. The save happens when you switch away, not mid-thought, so a dev server or test runner in watch mode does not rebuild on every pause.
There is a catch with editor.codeActionsOnSave. Each action defaults to explicit, which runs only on an explicit save, while always also runs on auto-saves triggered by window or focus changes.
Format on save and the default formatter
Format on save is only as good as the formatter behind it.
When several extensions compete for one language, VS Code prompts you to choose one. Setting editor.defaultFormatter ends that prompt.
Prettier is the usual choice for web languages (its extension lists JSON, CSS, SCSS, Less, HTML, Vue, Angular, GraphQL, Markdown and YAML), and there is a separate guide to using Prettier in VS Code from install to config.
The sources disagree on one point. The VS Code settings documentation allows several languages in one override block, such as “[javascript][typescript]”. The Prettier extension’s documentation goes the other way and says VS Code does not support combined language syntax for editor.defaultFormatter, so each language needs its own block.
Follow the stricter rule for editor.defaultFormatter. One block per language costs a few extra lines and breaks nothing.
Until you turn it on, the Format Document command runs the same formatter by hand, and a separate walkthrough explains formatting code in VS Code manually.
Paste formatting is a different switch. editor.formatOnPaste is off by default and needs a formatter that can format a selection.
Whitespace and indentation
files.trimTrailingWhitespace strips trailing whitespace on save and stays off until you set it. files.insertFinalNewline adds the closing newline that VS Code does not write on its own. And files.trimFinalNewlines removes extra blank lines at the end of the file, which is the one people forget about.
Chromium’s tools/vscode/settings.json turns on all of them.
Indentation is where people trip. By default VS Code inserts spaces and uses 4 spaces per Tab, but auto-detection analyzes the open file and overrides that, and it only checks for 2, 4, 6 or 8 spaces.
My rule is to set editor.detectIndentation to false only where a formatter or an .editorconfig file owns indentation, and to set editor.tabSize to match. The Prettier extension reads VS Code settings, its own config files or an .editorconfig file. On repos you do not control, leave detection on so you don’t end up reformatting someone else’s files.
Readability Settings: Font, Word Wrap, Minimap and Brackets
Set a coding font, scope word wrap to prose and turn off the minimap. After that, confirm that bracket colorization and sticky scroll are on.
Fonts take two settings, not one. editor.fontFamily picks the font, and ligatures need a separate editor.fontLigatures entry in settings.json. Cascadia Code, Fira Code and JetBrains Mono all ship ligatures, and they stay plain glyphs until that line exists.
List fallbacks too. Writing “Cascadia Code, Fira Code” prefers the first and falls back to the second when it is missing on that machine. A short guide to changing the font in VS Code covers the install side.
Word wrap is off by default, and Alt+Z toggles it for the session. A “[markdown]” block with editor.wordWrap set to on wraps prose and leaves code alone. For the minimap, set editor.minimap.enabled to false, or move it with editor.minimap.side set to left. If you want a vertical guide at a particular column, editor.rulers draws one.
Skip the minimap change if you scroll by dragging it. On a laptop screen the strip costs horizontal space, so for most people it is dead weight.
| Feature | Setting | Introduced | On by default since |
|---|---|---|---|
| Bracket pair colorization | editor.bracketPairColorization.enabled | 1.60, August 2021 | 1.67, April 2022 |
| Sticky scroll | editor.stickyScroll.enabled | 1.70 as a preview, setting in 1.71 | 1.87, February 2024 |
Both used to be extra work, so check that no old bracket extension is still doing the same job. The Bracket Pair Colorizer 2 listing itself points to the native settings, including editor.guides.bracketPairs set to active.
Sticky scroll also has editor.stickyScroll.maxLineCount, which defaults to a maximum of 5 lines.
Performance and Privacy Settings: File Exclusions and Telemetry
Exclude dependency and build folders from search and file watching, then set telemetry.telemetryLevel to off if you do not want usage data sent.
files.exclude controls which files and folders VS Code hides, and search inherits its patterns. search.exclude adds its own layer, and VS Code already excludes some folders by default to cut search results you do not care about, node_modules among them. Then there is files.watcherExclude. Its own description says to exclude large, low-interest folders such as build output when the file watcher process uses a lot of CPU.
Exceptions cut both ways. An exception in either files.exclude or search.exclude can override an exclusion in the other.
Large checkouts feel this most. Fuchsia’s contributor documentation tells developers to exclude directories from the watcher because detection time grows with the size of the code base.
The trade-off is plain. An excluded folder vanishes from project-wide search, so a bug in vendored code will not show up there. These settings also change only what VS Code shows. Telling Git what to ignore is the job of a separate gitignore file.
telemetry.telemetryLevel steps down what gets sent, from all to off, and each level drops something from the one above it.
| Value | Crash reports | Error telemetry | Usage data |
|---|---|---|---|
| all | Yes | Yes | Yes |
| error | Yes | Yes | No |
| crash | Yes | No | No |
| off | No | No | No |
The table comes from the VS Code telemetry documentation. Setting it to off silences telemetry going forward, though data may already have been sent before you changed it.
Extensions are where the documentation splits. The configure page says some extensions collect their own data and are not controlled by the setting. The enterprise page says it affects first-party Microsoft extensions and participating third-party extensions.
Both hold. Extensions that do not participate keep their own switches, so check each one’s documentation.
Going lower has a cost. Experimentation is disabled for you if usage data is off, so new features reach you later.
Startup, Terminal and Git Defaults Worth Changing
A few defaults outside the editor itself deserve a look too: the startup screen, preview tabs, the default terminal profile and background Git fetching. Each one is a single line in settings.json.
workbench.startupEditor decides what VS Code shows when it opens without a file. Values in the wild include welcomePage, welcomePageInEmptyWorkbench, newUntitledFile and none, and the current docs add agentSessionsWelcomePage for a page with recent agent sessions.
Pick newUntitledFile if you start with scratch text, none if you start from the Explorer. Undoing either takes seconds.
Preview tabs are the ones with italic titles. A single click on a file in the sidebar opens it in preview mode, and the next file you click replaces it. workbench.editor.enablePreview controls that and is true by default. Quick Open has its own switch, workbench.editor.enablePreviewFromQuickOpen, which has been false by default since VS Code 1.52.
Turn enablePreview off if every file opened from the sidebar should keep its tab. Files opened from Quick Open already keep theirs unless you switch enablePreviewFromQuickOpen on. The price is clutter, so pair the change with workbench.editor.wrapTabs, because tabs line up in one row by default.
If you leave preview on, double-clicking the italic tab (or pressing Ctrl+K, then Enter) keeps it open.
The default terminal shell is set per operating system.
| OS | Setting | Default shell |
|---|---|---|
| Windows | terminal.integrated.defaultProfile.windows | PowerShell |
| macOS | terminal.integrated.defaultProfile.osx | $SHELL |
| Linux | terminal.integrated.defaultProfile.linux | $SHELL |
The value must be the name of an existing profile. The Terminal: Select Default Profile command in the Command Palette writes it for you, and setting a profile to null removes a built-in one from the dropdown.
The terminal has its own font settings. terminal.integrated.fontFamily takes a CSS-style font stack, with monospace as the fallback for missing glyphs, and terminal.integrated.lineHeight is a multiplier, so 1.1 adds 10% vertical space.
For the terminal beyond its settings, there is a longer piece on the VS Code terminal.
git.autofetch calls git fetch periodically so VS Code can show incoming and outgoing commit counts. It is off by default in the editor window (it is on by default in the Agents window), and the troubleshooting docs warn that background fetches can trigger repeated authentication prompts.
Leave it off on repos behind SSO or token prompts. Turn it on where you want the counts and your credentials are cached.
Two smaller Git settings are worth knowing.
- git.discardUntrackedChangesToTrash moves discarded untracked files to the Recycle Bin or Trash where the environment supports it
- git.addAICoAuthor is off by default, and its chatAndAgent and all options add a Co-authored-by trailer
Should a Setting Go in User, Workspace or Language Scope?
Personal taste goes in user settings and project rules in workspace settings. Per-language exceptions get a “[language]” block. When scopes disagree, the more specific one wins.
| Scope | Where it lives | Overrides | Best for |
|---|---|---|---|
| User | User settings.json | Built-in defaults | Font, theme, minimap |
| Workspace | .vscode folder at the project root | User values | Formatter, exclusions, tab size |
| Folder | Folder entry in a multi-root workspace | Workspace values | One project inside a multi-root workspace |
| Language | “[language]” block | General values | Per-language tab size or formatter |
Workspace settings sit in the project’s .vscode folder, which makes them easy to share in a project under version control. Commit the ones that change output (formatter, tab size, exclusions) and keep personal ones such as font and minimap in your user settings.
Precedence order
The settings documentation ranks the scopes from weakest to strongest, and later scopes override earlier ones.
- Default settings
- User settings
- Remote settings
- Workspace settings
- Workspace folder settings (multi-root workspaces)
- The language-specific version of each level above, in the same order
- Policy settings from a system administrator, which always override everything else
The language entries sit after every general one. A “[json]” block in user settings therefore outranks a plain workspace value for the same key, which few people expect.
Espressif’s ESP-IDF extension documents the same layering for its own settings. Workspace folder config lives in .vscode/settings.json, workspace config in the .code-workspace file, and user settings come last.
Merging follows its own rule. Object values merge across scopes, while primitive and array values are replaced.
Language-specific overrides
Language blocks use the language ID in brackets, for example “[json]”: { “editor.tabSize”: 2 }.
A single-language block takes precedence over a multi-language block. Precedence compares the full bracket string, so a workspace “[typescript][javascript]” block does not override a user “[javascript]” block.
Keep language blocks in one place and write them as single-language entries. It saves you a hunt later.
Profiles
A profile bundles settings, keyboard shortcuts, MCP servers, snippets, tasks, extensions and UI layout, and anything left out falls back to the Default Profile. Attach one to a folder or workspace and opening that folder activates it. Templates cover Python, Data Science, Doc Writer, Node.js, Angular, Java General and Java Spring.
To share a profile, export it as a .code-profile file or a secret GitHub gist. One limit worth knowing: a profile cannot inherit from another, and copying creates an unlinked copy.
A profile beats workspace settings when the difference is a way of working (Python data work versus a Node API), not a repo rule. Profiles live in your user configuration folder, so nothing lands in Git.
How Settings Sync Carries Your Configuration to Another Machine

Settings Sync copies user settings, keyboard shortcuts, snippets, user tasks, MCP servers, UI state, extensions, profiles, and prompts and instructions to any machine where you sign in with the same Microsoft or GitHub account.
- Choose Backup and Sync Settings from the Manage gear or the Accounts menu.
- Pick the data categories to sync.
- Sign in with a Microsoft or GitHub account and finish the browser authentication.
VS Code then merges local and cloud data and keeps syncing in the background. Profiles reach your other machines only if Profiles is checked.
Some data never leaves the machine. Machine-scoped settings (machine and machine-overridable) stay local, and so do workspace tasks, extensions going to or from a remote window (SSH, dev container, WSL) and anything you exclude yourself.
Exclusions go through settingsSync.ignoredSettings and settingsSync.ignoredExtensions, and clearing settingsSync.keybindingsPerPlatform shares keyboard shortcuts across operating systems.
Extensions sync too, so prune the list before you sign in on a second machine. The guide to VS Code extensions is a decent place to decide what stays.
Conflicts show up on first setup or after offline changes, and syncing pauses until you resolve them. Accept Local (or Replace Remote) keeps local data and overwrites the cloud. Accept Remote (or Replace Local) does the reverse. Show Conflicts opens a diff editor, and Complete Merge finishes the job.
The Settings Sync documentation sets a few limits. Up to 20 profiles sync. Local backups are deleted after 30 days, and the latest 20 remote versions per category are kept. Only 2 account types work, Microsoft and GitHub, while GitHub Enterprise Server and Microsoft Sovereign Cloud accounts do not.
One security note. The basic password-store option provides obfuscation, not secure encryption, and the docs do not recommend it.
When VS Code Settings Do Not Apply
Usually a higher scope overrides the value. Other causes are a key that is not allowed at workspace scope, Workspace Trust holding the folder in Restricted Mode, or an error in the JSON.
| Symptom | Cause | Fix |
|---|---|---|
| One project ignores your user value | A workspace, folder or language entry outranks it | Use the @modified filter and check the Workspace tab |
| git.path or terminal.external.* does nothing in a repo | Executable settings are blocked at workspace scope | Move the key to user settings |
| Workspace settings and tasks stay silent in a new folder | The folder is in Restricted Mode | Trust the folder from the banner |
| VS Code cannot write user settings | A missing comma or incorrect value in settings.json | Fix the red squiggles |
Settings that are overridden or ignored
A few keys can only live in user settings: git.path and the terminal.external windowsExec, osxExec and linuxExec settings. If a workspace defines one, VS Code warns you and then ignores the value.
Workspace Trust is the other big one. Restricted Mode disables AI agents, the terminal, tasks, debugging, workspace settings and extensions.
- security.workspace.trust.enabled defaults to true
- security.workspace.trust.startupPrompt defaults to never, so a new folder opens in Restricted Mode with a banner instead of a dialog
- The documentation does not list the disabled workspace settings, and points to the @tag:requireTrustedWorkspace filter instead
When formatters compete, pin one by ID inside a language block. esbenp.prettier-vscode is the Prettier ID, and vscode.json-language-features is one of the built-in formatters.
Resetting settings
To reset one setting, hover over it, click the gear icon and select Reset Setting. To reset everything, delete the entries between the braces in settings.json, and know that the docs say previous values cannot be recovered. For reference, Preferences: Open Default Settings (JSON) opens a read-only defaultSettings.json with every built-in value.
Copy settings.json aside before you wipe anything. A saved copy takes seconds.
VS Code Settings FAQ
Can you add comments to settings.json?
Yes, // comments work. settings.json is a JSON with Comments (JSONC) file, and VS Code even ships a built-in formatter for the jsonc language that applies to settings.json and launch.json.
How do you link straight to one setting?
Build a URL in the form vscode://settings/settingName, where settingName is the setting ID. For example, vscode://settings/workbench.colorTheme jumps to the color theme setting.
The gear icon beside any setting also offers a copy settings URL option.
Can Stable and Insiders share synced settings?
Yes, but only if you opt in, and the sync can break. By default the two builds use separate Settings Sync services and do not share data. To share, select the Stable sync service when you turn on Settings Sync in Insiders. Insiders is newer than Stable, so shared data can be incompatible, and Settings Sync turns itself off in Stable when that happens.
Update Stable first, then turn sync back on.
Which settings should beginners leave at their defaults?
Leave Workspace Trust on. security.workspace.trust.enabled defaults to true and keeps tasks, debugging and workspace settings from running in folders you have not trusted.
Beyond that, change only settings you can explain. The colored bar beside a modified setting shows what you touched, and the gear icon resets it.
A Safe Order for Changing VS Code Settings
Go by risk. Formatting and auto save come first, file exclusions second, and scope and sync last. The low-risk edits pay off on the first save and revert with one deleted line in settings.json.
Formatter and auto save give instant feedback. Exclusions and telemetry make more sense once you know the size of your projects. Workspace overrides and Settings Sync can wait until the defaults hold.
Format on save carries a cost. It rewrites whole files, so the first save in an unformatted legacy file produces a diff that buries the real change.
Reverse the order and a mistake in the user scope reaches every project, and every synced machine, before anyone spots it.
Verified in November 2026, the sequence holds until a release renames a setting or changes its default. Once settings are stable, the next step is choosing the best VSCode extensions for your language.
- How to Choose a Digital Transformation Consulting Partner - November 30, 2026
- Is Notepad++ Safe? Official Download, Updates, CVEs - November 29, 2026
- How to Evaluate an AI Code Reviewer on Your Own Pull Requests - November 29, 2026



