Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

imports

Marcel Kloubert edited this page Dec 30, 2017 · 7 revisions

Home >> Settings >> Imports

Imports

Defines one or more setting files to import.

Relative paths will be mapped to your home directory (.vscode-deploy-reloaded sub folder) or the .vscode folder.

{
    "deploy": {
        "imports": [
            "./myDeploySettings.json",

            {
                "from": "\\\\MyCompany\\MyProject\\teamSettngs.json"
            }
        ]
    }
}

Possible values

String (source)

{
    "deploy": {
        "imports": [
            "./myDeploySettings.json"
        ]
    }
}

Object (settings)

{
    "deploy": {
        "imports": [
            {
                "from": "\\\\MyCompany\\MyProject\\teamSettngs.json",
                "if": " 'kloubert_pc' !== $v['hostname'] "
            }
        ]
    }
}
Name Description
from The source (file) with the settings to import. Relative paths will be mapped to the current user's home directory (.vscode-deploy-reloaded) or settings (.vscode) folder.
if (JavaScript) Code, which checks if import entry should be used or not.
platforms One or more platform names the entry is for. s. process.platform