'How to configure single folder's settings in vscode workspace

vscode document

The document told me that: The concept of a workspace enables VS Code to:

  • Configure settings that only apply to a specific folder or folders but not others. but I can not find the config method in the document.

I'm trying to configure settings that only apply to a specific folder but not others. I've tried the configuration below, but no one validated it, does anybody know how to config that?

{
    "folders": [
        {
            "path": "smart_claim"
        },
        {
            "path": "claim-libaries",
            "settings": {
                "typescript.validate.enable": false,
                "javascript.validate.enable": false
            }
        },
        {
            "path": "health-claim"
        },
        {
            "path": "pet-claim"
        },
        {
            "path": "xhb-claim"
        }
    ],
    "settings": {
        "typescript.validate.enable": true,
        "javascript.validate.enable": true
    }
}
{
    "folders": [
        {
            "path": "smart_claim"
        },
        {
            "path": "claim-libaries",
            "typescript.validate.enable": false,
            "javascript.validate.enable": false
        },
        {
            "path": "health-claim"
        },
        {
            "path": "pet-claim"
        },
        {
            "path": "xhb-claim"
        }
    ],
    "settings": {
        "typescript.validate.enable": true,
        "javascript.validate.enable": true
    }
}


Sources

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

Source: Stack Overflow

Solution Source