Skip to content

Allow to scope settings by platform #5595

Description

Hi

I develop on 3 different platform. When synchronizing settings, snippets and so on, i often must change path, adjust font-size, etc...

So, it could be great if we had a per platform settings set (Windows, Mac, Unix)

Activity

  1. added
    feature-request
    on Apr 21, 2016
  2. changed the title [-]Per platform settings[/-] [+]Allow to scope settings by platform[/+] on Apr 21, 2016
  3. bpasero commented on Jul 15, 2016

    @bpasero
    Contributor
  4. added
    *duplicate
    on Jul 15, 2016
  5. locked and limited conversation to collaborators on Nov 18, 2017
  6. added
    config
    and removed
    *duplicate
    on Aug 15, 2018
  7. unlocked this conversation on Aug 15, 2018
  8. 191 remaining items

  9. printfdebugging commented on Aug 22, 2025

    @printfdebugging

    there's an extension which makes it possible, runarsf.platform-settings is the extension id. please see https://github.com/printfdebugging/learn-opengl/blob/main/.vscode/settings.json where i use it, works quite well across windows, linux and mac.

  10. kankaristo commented on Aug 23, 2025

    @kankaristo

    Sahil Gautam (@printfdebugging), that extension might fix the issue for some people, but unfortunately that extension just modifies settings.json on the fly.

    This still marks the file as changed in Git (I have settings.json in my dotfiles repo), making "actual" changes to settings difficult to keep track of.

    If this were an actual feature in VSCode, settings.json would only be read, not changed on the fly based on the platform.

  11. blueben commented on Oct 8, 2025

    @blueben

    If this is resolved before the issue turns 10 years old, I will drive over to Redmond and take the developer who implements this out for lunch.

  12. alexchexes commented on Oct 8, 2025

    @alexchexes

    Love round digits, btw:

    Image
  13. pjmagee commented on Oct 17, 2025

    @pjmagee

    I thought this was implemented because you can configure env variables based on OS.

  14. emmenlau commented on Oct 17, 2025

    @emmenlau

    I thought this was implemented because you can configure env variables based on OS.

    Not for all settings.

  15. gulshan commented on Oct 17, 2025

    @gulshan

    I think it will be enough to be able to indicate some settings should "not" be synced. Either it can be a separate machine-wide settings file, or a separate non-synced portion in the global settings file. Somewhat like git. For some settings, I don't even want to sync between two of my machines of the same OS, because of various dissimilarities between the two. And we do not setup new machines that frequently, I guess. So, I would prefer "machine-specific not synced" instead of "OS/Platform-specific synced" option.

    Would that make the development easier? Or is it something already available and I have no idea?

  16. yume-chan commented on Oct 18, 2025

    @yume-chan
    Contributor
  17. yCodeTech commented on Dec 15, 2025

    @yCodeTech

    Bump Daniel Imms (@Tyriar) Sandeep Somavarapu (@sandy081)

    This should have been added already.

    2026 is nearly here. Can we get a Christmas/New Years present please?

  18. br-arruda commented on Jan 17, 2026

    @br-arruda

    I think it will be enough to be able to indicate some settings should "not" be synced.

    https://code.visualstudio.com/docs/configure/settings-sync#_configuring-synced-data

    Some MCP servers from AWS requires different setup on Windows and Linux. I checked the possibility of disabling syncing of MCP Server config but it is not available as an option.

  19. SEsnorre commented on Jun 7, 2026

    @SEsnorre

    It is now open for 10 years. Maybe in another 10 we get an implementation. Jokes aside, is there any progress on this topic? Me and a lot of people I know would love this feature.

  20. yCodeTech commented on Jun 7, 2026

    @yCodeTech

    Tbh, with vscode's new release cycle they SHOULD be able to get through a lot more issues than they currently do. But perhaps they're priorities are not aligned with the users at the moment, which is a massive shame

  21. sysescool commented on Sep 16, 2026

    @sysescool

    Just as tasks.json allows you to specify different commands for different platforms—"windows", "linux", and "osx"—settings.json should support this as well. This way, you would only need to keep a single settings.json file in sync.

  22. lrtfm commented on Sep 17, 2026

    @lrtfm

    An implementation is now available for review in #335281.

    It adds windows, osx, and linux blocks to settings.json. Common settings are applied first, followed by the matching platform block:

    {
        "editor.fontSize": 16,
    
        "osx": {
            "editor.fontSize": 14,
            "[typescript]": {
                "editor.defaultFormatter": "esbenp.prettier-vscode"
            }
        },
    
        "windows": {
            "editor.fontSize": 15
        },
    
        "linux": {
            "editor.fontSize": 13
        }
    }

    The implementation also supports nested language-specific settings, schema completion and validation, existing configuration-scope precedence, and Settings Sync.

    Unofficial Code - OSS preview builds are available for testing:

    • macOS ARM64
    • Windows x64 portable
    • Windows x64 installer

    https://github.com/lrtfm/vscode/releases/tag/os-settings-preview-fe76090f0

    These builds correspond to commit fe76090f0. The macOS build is ad-hoc signed but not notarized, and the Windows packages are unsigned, so the operating system may display a security warning.

    Testing and feedback on #335281 would be very helpful.

  23. leodutra commented on Oct 24, 2026

    @leodutra

    Better 10 years later than never, I guess. Congrats to the contributors.

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