'Why does the c_cpp_properties.json file not like it when I have a config for linux and windows? And is ther a way to fix this problem?

Underneath I have listed my c_cpp_properties.json file, when I remove the Linux config it works just fine on windows 10. But I would like to know if there is a way to make it that vscode on windows can ignore the Linux config. Because I'd like to be able to sync with different devices.

    "configurations": [
        {
            "name": "Win32",
            "includePath": [
                " ${workspaceFolder}/**",
                "E:\\msys64\\mingw64\\include"
            ],
            "defines": [],
            "windowsSdkVersion": "10.0.17763.0",
            "compilerPath": "E:\\msys64\\mingw64\\bin\\gcc",
            "intelliSenseMode": "${default}",
            "browse": {
                "path": [
                    "E:\\pt3/**",
                    "E:\\msys64\\mingw64\\include\\**"
                ],
                "limitSymbolsToIncludedHeaders": true
            },
            "cppStandard": "gnu++17",
            "compilerArgs": [],
            "mergeConfigurations": false
        },
        {
            "name": "Linux",
            "includePath": [
                "${workspaceFolder}/**"
            ],
            "defines": [],
            "compilerPath": "/usr/bin/gcc",
            "cppStandard": "c++20",
            "intelliSenseMode": "linux-gcc-x64",
            "browse": {
                "path": [
                    "${workspaceFolder}",
                    "/usr/bin/include/**"
                ],
                "limitSymbolsToIncludedHeaders": true
            },
            "configurationProvider": "ms-vscode.makefile-tools",
            "compilerArgs": [],
            "mergeConfigurations": false
        }
    ],
    "version": 4
}```


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source