You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add support for additional global config files (in addition to settings.json) #17634
*duplicateIssue identified as a duplicate of another issue(s)configVS Code configuration, settingsfeature-requestRequest for new features or functionality
It would be very helpful for somebody attempting to sync config files between multiple machines if VSCode supported some system for having multiple config files included at a time.
Benefits:
Imagine a config folder structure like this on a developer's mac:
Using symlinks, then, a developer would be able to have specialized configuration files for each computer, while keeping the vast majority of options synced between both.
Implementation:
I can think of two simple ways to implement this with as little friction as possible.
An editor.includeConfig option in the main settings.json
This might be a JSON array, with support for various different config files. It could also just be a single field.
Whether or not the option should be recursive is up to the VSCode team.
VSCode searches for all config files in the directory matching settings[.foo].json and includes those.
Conflicts:
If going with option (1) above, conflicting config entries should take precedence the later they appear in the includeConfig array.
If going with option (2), the main settings.json file should take precendence.
Reacted by Mikel Ward, Stillward, mbward, Lucas Nunno, Lenz Weber-Tronic, Danny Tuppeny, Jorgen Smith, fkrull, Jens Green Olander, Jos van Bakel and 42 more
changed the title [-]Add support for additional global config files (similar to settings.json)[/-][+]Add support for additional global config files (in addition to settings.json)[/+]on Dec 21, 2016
Gui Andrade (@archshift) I'm curious what settings differ across your Mac and Linux configs? Another potential solution is to have .linux/.osx/.windows settings available for all settings instead of just a select few?
Let's say I have a laptop and a desktop (both Windows, for instance), and the two computers have different screen sizes/resolutions. I might want to set editor.fontSize to 12 on my desktop and 10 on my laptop.
This also applies to extensions. If I'm using the Rust extension, which has options like rust.racerPath and rust.cargoPath, the paths might be different from computer to computer.
Reacted by The-New-Guy, Mikel Ward, Andreas Neuhaus, Stillward, Lucas Nunno, btstream, Jos van Bakel, slavdok and Thorbjørn Horgen
settings.local.json is something we would use as well.
In our case, this would be on the workspace level: we'd commit .vscode/settings.json to our team Git repo and share things like files.exclude but the developers would be able to define / override the settings in their .local files.
BTW this is a common issue with IDEs. We commonly commit something like .idea-tpl instead of .idea to Git, then have some sort of a build script that copies this to the real location. It would be so nice if Code understood this common struggle and provided a way to deal with it elegantly.
Reacted by Guillaume Martres, Mikel Ward, Stillward, Julia, Jorgen Smith, 胡玮文, Alex Rønne Petersen, Thorbjørn Horgen, Laurence Ede, Pedro Fialho and 1 more
Daniel Imms (@Tyriar) The requested feature is also useful for maintaining separate override configs for home vs. work, or for each client. For example, different default tab size and linter settings. Hard-coding it to only split based on platform would be too restrictive.
This suggestion would be useful to us even in the workspace settings alone. Some settings could be shared (commited) and some could be personal or system specific. I have workspaces on multiple platforms and sometimes need to tweak local settings per workspace, e.g. terminal settings, EOL settings, run code settings, file exclude settings, git settings, etc.
Hope this feature will be imported, including launch.json and other setting files.
Separate TEAM shared workspace setting and PERSONAL specific setting.
Just like coding with Class Inheritance :)
Thanks
Philip Mateescu (@philipmat) Here's my breakdown:
global: shortcuts, colors, fontSize, etc.
company/machine: tabSize, rulers, formatTool, pylintPath, etc.
project/workspace: maybe some overrides could be useful, but for me there aren't any
Doing it using workspace settings would mean I'd need to copy my settings for every one of hundreds of projects. And I wouldn't be allowed to check in vscode-specific configs into my projects, so I'd have to re-create them every time I made a new checkout.
Sure I could script it, but supporting a "local" include file makes way more sense IMHO.
Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines.
there are amillion other extension that can quickly bloat the settings file & separating the config between multiple files will surely make things easier to organise & quicker for the editor.
btw this is already possible with theme files ex."include": "./syntax.json"
Hi,
Please, any updates or ETA?
Because all other issues opened related to the same topic are closed because they duplicate this one but I don't see any progress on this one.
Thanks
*duplicateIssue identified as a duplicate of another issue(s)configVS Code configuration, settingsfeature-requestRequest for new features or functionality
Activity
[-]Add support for additional global config files (similar to settings.json)[/-][+]Add support for additional global config files (in addition to settings.json)[/+]egamma commentedon Dec 21, 2016
FYI Benjamin Pasero (@bpasero) Daniel Imms (@Tyriar)
Tyriar commentedon Dec 21, 2016
Gui Andrade (@archshift) I'm curious what settings differ across your Mac and Linux configs? Another potential solution is to have
.linux/.osx/.windowssettings available for all settings instead of just a select few?/cc Sandeep Somavarapu (@sandy081) João Moreno (@joaomoreno)
archshift commentedon Dec 21, 2016
Daniel Imms (@Tyriar) it's not so much about OSs and more about computers.
Let's say I have a laptop and a desktop (both Windows, for instance), and the two computers have different screen sizes/resolutions. I might want to set
editor.fontSizeto 12 on my desktop and 10 on my laptop.This also applies to extensions. If I'm using the Rust extension, which has options like
rust.racerPathandrust.cargoPath, the paths might be different from computer to computer.borekb commentedon Feb 7, 2017
settings.local.jsonis something we would use as well.In our case, this would be on the workspace level: we'd commit
.vscode/settings.jsonto our team Git repo and share things likefiles.excludebut the developers would be able to define / override the settings in their.localfiles.BTW this is a common issue with IDEs. We commonly commit something like
.idea-tplinstead of.ideato Git, then have some sort of a build script that copies this to the real location. It would be so nice if Code understood this common struggle and provided a way to deal with it elegantly.mikelward commentedon Jul 22, 2017
Daniel Imms (@Tyriar) The requested feature is also useful for maintaining separate override configs for home vs. work, or for each client. For example, different default tab size and linter settings. Hard-coding it to only split based on platform would be too restrictive.
philipmat commentedon Aug 17, 2017
Mikel Ward (@mikelward) Sounds as if workspace settings might be of better use to you.
larsch commentedon Oct 5, 2017
This suggestion would be useful to us even in the workspace settings alone. Some settings could be shared (commited) and some could be personal or system specific. I have workspaces on multiple platforms and sometimes need to tweak local settings per workspace, e.g. terminal settings, EOL settings, run code settings, file exclude settings, git settings, etc.
stillward commentedon Dec 7, 2017
Hope this feature will be imported, including
launch.jsonand other setting files.Separate TEAM shared workspace setting and PERSONAL specific setting.
Just like coding with Class Inheritance :)
Thanks
mikelward commentedon Dec 11, 2017
Philip Mateescu (@philipmat) Here's my breakdown:
global: shortcuts, colors, fontSize, etc.
company/machine: tabSize, rulers, formatTool, pylintPath, etc.
project/workspace: maybe some overrides could be useful, but for me there aren't any
Doing it using workspace settings would mean I'd need to copy my settings for every one of hundreds of projects. And I wouldn't be allowed to check in vscode-specific configs into my projects, so I'd have to re-create them every time I made a new checkout.
Sure I could script it, but supporting a "local" include file makes way more sense IMHO.
ineol commentedon Jan 26, 2019
Hi,
are there any updates on this?
thanks!
31 remaining items
vscode-triage-bot commentedon Oct 13, 2021
Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines.
Happy Coding!
pavlodenysov-vizio commentedon Oct 13, 2021
Sandeep Somavarapu (@sandy081) #5595 is not exactly the same. I may have 2 Linux machines that I want to use different settings on.
sandy081 commentedon Oct 13, 2021
Right, got it.
ctf0 commentedon Mar 25, 2022
+1 to this as well, except for a slightly different use case,
when using something like https://github.com/antfu/vscode-file-nesting-config the settings file become very big to parse and it slows down the whole thing even u try to just open the settings editor.
another example would be something like https://github.com/shanalikhan/code-settings-sync in case u have settings for multiple machines/hosts u use ex.
// @sync host=home os=windows// @sync host=home os=macthere are amillion other extension that can quickly bloat the settings file & separating the config between multiple files will surely make things easier to organise & quicker for the editor.
btw this is already possible with theme files ex.
"include": "./syntax.json"SebGt commentedon Oct 7, 2022
Hi,
Please, any updates or ETA?
Because all other issues opened related to the same topic are closed because they duplicate this one but I don't see any progress on this one.
Thanks
sandy081 commentedon Dec 14, 2022
It seems this is a duplicate of following features we already have or working on
Hence closing this as duplicate of all these features.