-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Local settings overrides (settings.local.json
)
#37519
Comments
@borekb Main intention of settings coming from For User Settings issue, I would ask the extension author to provide support to sync only selected settings. |
Code style is an example of something that is "black or white": you're right that such thing should either be enforced team-wide or not shared at all. However, we have some extension settings in our I probably agree with your reasoning about User Settings; that sounds like it should be handled by the syncing extension even though in practice, it's slightly problematic. |
but I'd like to customize it locally to be e.g. more strict (at the expense of some false positives). That is my local config that does not mean that the team config is wrong; I just have different needs, locally How about think this problem as follows. A practice defined by a team and one of the team members has a better practice which might makes it more efficient and productive. If so, you can always push that up to the team. I know, I am talking an idealistic scenario, but I am trying not to introduce a concept which is not required if there is a solution. |
Better practice -> we discuss, commit and push Different practice, with its benefits and drawbacks -> ... ? But I see your point about not complicating the product, I just wanted to post this is a top-level issue in case someone else has similar needs. Let's see. |
I've first put here a comment about the new version of the Python plugin being an issue: it pollutes .vscode/settings.json with a local setting python.pythonPath, which prohibits for version controlling the workspace settings. But creating a "single-rooted" *.code-workspace workspace, works around that issue just nicely:
This way, python.pythonPath is stored in the *.code-workspace settings, which truly is local. The docs even talk in particular about zoomLevel: you must set it in the *.code-workspace settings, and not in the folder's .vscode/settings.json. |
@bdegreve That is a nice trick, thanks. |
Closing this in favour of using new Workspace as a solution. |
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 calledsettings.local.json
which, when present next to thesettings.json
file (both user and workspace), overrides its values.Two example use cases:
.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.).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 containswindow.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.
The text was updated successfully, but these errors were encountered: