Skip to content

[Feature] Local Workspace settings #40233

Open
snickell/vscode
#2

Description

I would like to be able to configure settings that are specific to my user and to a particular workspace. So, 'local' workspace settings?

So there would be three locations for settings (for a single-folder workspace):

  • user settings
  • ${workspaceRoot}/.vscode/settings.json
  • ${workspaceRoot}/.vscode/settings.local.json

This way, I can add .vscode/settings.json to git, and share project settings such as "exclude node_modules" but I can gitignore .vscode/settings.local.json and add things specific to that project that I don't want to share, such as git autofetch.

I originally thought to suggest .vscode/settings.user.json, similar to how VS Pro handles similar configuration, but that might be confusing.

Activity

  1. added
    config
    on Dec 14, 2017
  2. sandy081 commented on Dec 15, 2017

    @sandy081
    Member

    Ethan Reesor (@firelizzard18)

    We have released a new Multi-root Workspace Feature where you can open multiple folders in a workspace. This introduces a new abstraction in settings.

    User -> Workspace -> Folder

    Settings under .vscode folder are called now Folder settings in a Multi-root workspace. You also have Workspace settings those get applied for complete workspace. For more information refer here.

    You can open a folder in a workspace as follows and can use Workspace settings here as user specific workspace settings for the folder.

    • Open an empty window and add the folder to it.

    Please try it out and let us know if that solves your issue

  3. added
    info-needed
    on Dec 15, 2017
  4. firelizzard18 commented on Dec 15, 2017

    @firelizzard18
    ContributorAuthor

    Using a multi-root workspace, even with only one open root/folder, adds a layer of unnecessary complexity. I'm looking for an additional config file that works with a single-root workspace, so I can have the main workspace config file checked in to source control and the additional workspace config file ignored.

  5. added
    feature-request
    and removed
    info-needed
    on Dec 18, 2017
  6. Aloisius commented on Jun 8, 2018

    @Aloisius

    Instead of creating new local workplace settings, perhaps keeping settings.json as the local workspace settings file and creating a new shared workplace settings file makes more sense?

    That way the extension api #43226 wouldn't need to change and extensions would continue to work as they are currently written.

    The only change necessary, I imagine, would be to check to see if .vscode/shared.json (or whatever) existed, load it first, then load .vscode/settings.json.

    In my case, the issue is that the python extension writes the python path to settings.json which is different for every developer using virtualenv. The settings I'd like to add to version control and share between devs are files to ignore, unit testing and linting.

  7. sandy081 commented on Jun 11, 2018

    @sandy081
    Member

    Currently .vscode/settings.json is shared as it is part of .vscode folder. So it cannot be treated as non shareable one

  8. borekb commented on Jun 26, 2018

    @borekb

    Related issue with some additional use cases: Local settings overrides (settings.local.json) #37519

  9. segevfiner commented on Jul 8, 2018

    @segevfiner
    Contributor

    The VS Code Python extension saves python.pythonPath in the settings.json (Outside a multi-root workspace). This is a problem when you want to commit settings.json to share settings, and there are likely other settings extensions might want to customize and save per repository.

    It would really make sense to add such a local settings file to solve this. Even better will be to support this for the other json files in VS Code too, allowing you to keep local tasks, debug configurations and such without editing possibly committed files.

    It might require some restructuring of the way VS Code handles editing those files. Personally it would make sense for it to edit the local ones by default, requiring you to explicitly move stuff to the shared ones in order to share/commit them.

  10. lehni commented on Jul 17, 2018

    @lehni

    The suggestion in #37519 to use a workspace doesn't work for all kinds of settings. For example, I can't seem to control "editor.formatOnSave" from the workspace level, only from the folder level.

    Having the option to provide settings.local.json would still add a lot of advantages over workspaces.

  11. remcohaszing commented on Sep 20, 2018

    @remcohaszing
    Contributor

    Instead of using ${workspaceRoot}/.vscode/settings.local.json, I believe these settings should be stored outside of the VCS repository. I tend to use git clean -xdf a lot to get a pristine working directory. This would remove the local settings.

    My current workaround is to create ${workspaceRoot}/.git/.vscode and symlink it after I remove it by accident. This workaround works, because I believe it’s a bad practice to commit editor configurations. Since I don’t commit them, a symlink won’t override any existing files. This won’t work for merging multiple configurations.

    Perhaps VSCode should just look for ${workspaceRoot}/.git/.vscode, ${workspaceRoot}/.svn/.vscode, etc. for additional settings instead.

  12. 199 remaining items

  13. rib commented on Oct 8, 2025

    @rib

    Sandeep Somavarapu (@sandy081) can you perhaps give an update on your plans with this issue?

    Back in 2020 you made a proposal to try and address this via user settings, but the feedback at the time seemed to suggest that people found it over-complicated and thought it wasn't really addressing the original issue.

    You left a comment more than 5 years ago that said you would review the feedback and come back after iterating on this: #40233 (comment)

    It seems like mixed messaging to see other issues get closed as duplicates of this issue (giving the impression that you consider this issue to still be active) but there's been no official update from you here on what the plan is.

    Closing a PR that makes a stab at addressing this by simply asserting that you'll never accept community contributions for this issue does not look good.

    If UX design work is required here, that should still be manageable as a community contribution.

    Anyone interested in trying to address this has no insight into what the blocking issues are and no insight into whether you're planning on revisting this.

    Since you're assigned to this issue Sandeep Somavarapu (@sandy081) it would be good if could follow up in some way to make progress in addressing this, even if that means closing it as "won't fix". Alternatively, if you don't have any plans to look at this issue again then maybe it can be re-assigned to someone else?

  14. gdlx commented on Oct 8, 2025

    @gdlx

    Maybe we should find a way to make this feature Copilot related to allow this 8 years old 900+ 👍 request get some ❤️ ?

  15. rutexd commented on Oct 8, 2025

    @rutexd

    I can bet, even if he responses to this, there will be no new info. "need planing", "want keep things simple" or "will be released in 10 years in next major version".
    I just wonder how such unprofessionalism and incompetence could be welcomed in Microsoft. But looks like noone above is care...

  16. yordis commented on Oct 8, 2025

    @yordis

    Does anyone know how the assignment works?

    I've never worked at a company where I could take 8 years doing nothing about an assigned task; it would either be closed, backlogged, or reassigned.

  17. rutexd commented on Oct 8, 2025

    @rutexd

    Actually this is how you get paid. You say in 2018 you working on this feature and... You doing your best and trying hard.
    Especially if 50% of the team is working on Ai features.... This is only way you can stay and work.

  18. yordis commented on Oct 9, 2025

    @yordis

    The Pull Request got reopened; so, I would ask y'all to help dogfooding what I have done thus far so avoid any inconveniences for them, so we make it as simple as it gets to get the work done.

    So, please help, I tested, unit test it, but still, it is software

  19. jrz commented on Oct 16, 2025

    @jrz

    So when can we expect an extra file + tab in settings -> workspace (repository/shared) ? It makes no sense why this is so hard to decide on. It's simply another level of settings/overrides.

  20. BobKerns commented on Nov 21, 2025

    @BobKerns

    We shouldn't have to choose between sharing and personalization!

    This has been bugging me repeatedly, project after project. The current workflow is painful:

    1. Set up nice default settings for other developers
    2. Add your personal customizations
    3. Now you have to play .gitignore games: filter out personal settings, commit, restore your settings, restore .gitignore
    4. Other developers face the same hassle when they want to contribute shared settings while keeping their personal ones
    5. The whole process is error-prone and frustrating

    Current workarounds are all problematic:

    • .gitignore approach affects everyone, not just you
    • .git/info/exclude works but is invisible/undiscoverable to new contributors
    • .example files require constant manual sync and maintenance
    • Workspace settings force lowest-common-denominator defaults
    • Extensions can, in User settings, list workspaces they should apply to

    Extensions workarounds are particularly clunky: Some extensions like Auto Close Tab let you specify workspace lists in User settings. Others provide for their own per-user settings. This approach is hard to discover, difficult to maintain, and only works for extensions that specifically implement these patterns.

    Goal: Be able to set up a project developer-ready out-of-the-box in a way that supports both sharing and personalization.

    My suggested implementation: Add a .vscode-local/ folder that layers over .vscode/, additively where appropriate in the same manner as User and Workspace (and Folder if multi-root). The default for editing settings should probably be this new layer, maybe called "Local".

    Advantages of .vscode-local/ approach:

    • You just add .vscode-local/ to your .gitignore
    • It follows an existing pattern - natural extension of current hierarchy
    • It gives a straightforward extension to the UI leveraging existing infrastructure
    • Supports all file types - settings.json, tasks.json, launch.json, extensions.json, etc.
    • Could contribute configuration variables and environment variables for use in the Workspace layer
    • Possibly the least implementation effort for highest benefit

    In the Multi-root case, I'd avoid complicating it with a Workspace-wide Local layer. Just layering over the Folder layer should be sufficient.

    Real-world use case: Python projects where each developer has different virtual environment paths, debug configurations with personal credentials, or font/theme preferences per project.

    Launch configurations are a particular pain point: These often contain personal file paths, credentials, or environment-specific settings that shouldn't be shared, but you want to provide working examples for the team. Currently there's no clean way to layer personal launch configs over shared ones.

    PLEASE give this some attention, in some form.

  21. deminearchiver commented on Nov 21, 2025

    @deminearchiver

    This folder could also be named .vscode.local, because some .gitignore files include *.local for ignoring things like secrets used during local development. This way, the configuration directory would get automatically ignored in some repositories without much changes to .gitignore. And also this would not be a breaking change since currently .vscode.local is not a thing.

  22. Mutantpenguin commented on Nov 24, 2025

    @Mutantpenguin

    Microsoft also does something similar for their "Microsoft 365 Agents Toolkit" extension for VSCode so there is already precedent for this in their own tooling.

    There we have .env.dev and .env.dev.local for example where the latter is excluded from git.

  23. sebmarchand commented on Dec 12, 2025

    @sebmarchand

    FYI, it feels like the focus is now on the new Workspace based on .code-workspace files (as per this comment) . I opened #282806 to track a similar feature request as the one discussed here but for .code-workspace.local files.

  24. mihasic commented on Jun 3, 2026

    @mihasic

    that would be such a useful feature and aligned with the conventions in other tools (.env.local, .claude/settings.local.json)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

configfeature-request

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions