You can override .vscode/settings.json with the settings in code-workspace.json , but a more general and flexible redefinition is not possible - I recommend that you vote for the Add extension option from other settings files . If you .vscode/settings.json both .vscode/settings.json and [name].code-workspace , it seems that it will be difficult for team members to customize their settings.
The nested settings in .vscode/settings.json seem to override the [name].code-workspace parameters, so you can try to execute the workspace file. Some people also submit example files, for example. settings.json.default and ask team members to remove the default extension.
I messed up the example: example.code-workspace
{ "folders": [ { "path": "." }, { "path": "nested" } ], "settings": { "window.zoomLevel": 1, "editor.fontSize": 8 } }
With the attached content .vscode/settings.json :
{ "window.zoomLevel": 2, "editor.fontSize": 16 }
This works as you probably expect: subfolder settings override workspace settings, although window.zoomLevel has been disabled by a tooltip saying that it will only be applied when it opens directly.
Ben creasy
source share