How to exclude Typescript build .js, .js.map files from the project on VS Code

Posted on March 24, 2022

You can exclude the Typescript build .js .js.map from VS Code using the below steps.
Add the below code to .vscode folder settings.json file, this will exclude .js and.js when the typescript file present for the corresponding .js and .js.map file

{
    "files.exclude": {
        "**/*.js": {
            "when": "$(basename).ts"
        },
        "**/*.js.map": {
            "when": "$(basename)"
        }
    }
}
to join this conversation on Samprix.Already have an account? Sign in to comment
Sponsors