Skip to content

Local settings overrides (settings.local.json) #37519

@borekb

Description

@borekb

It would be great if VSCode understood the concept of local settings that optionally override the standard settings.json rules. Specifically, I'm thinking about a file called settings.local.json which, when present next to the settings.json file (both user and workspace), overrides its values.

Two example use cases:

  • Workspace settings: in our team repo, we have basic settings in .vscode/settings.json. I'd like to customize some of those without making modifications to that file (Git would see it as changed, I could accidentally commit it, etc.).
  • User settings: I use Settings Sync to synchronize my settings between computers but not everything should be synchronized, e.g., window.zoomLevel. That extension explicitly added support for this scenario but it's not very smooth in my experience; it would be better if VSCode had the concept of local-only settings in the first place.

When writing to settings, for example, when I change my zoom level, VSCode would first look if I have the .local file and if it contains window.zoomLevel. If so, it would write to it, otherwise, it would work as today.

docker-compose.override.yml is a good analogy to this.

Originally mentioned in #17634 (comment) but that issue asks for something slightly different.

Metadata

Metadata

Assignees

Labels

configVS Code configuration, settingsfeature-requestRequest for new features or functionalitysettings-editorVS Code settings editor issues

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions