Visual Studio Code Hide Extra js and map Files Generated from ts

Open 【File】>【Preferences】>【Workspace Settings】, put in the following code:

// Put settings in this file to override defaults and user settings.
{
    "files.exclude": {
        // exclude .js and .js.map files, when in a TypeScript project
        "node_modules": true,
        "**/*.js": { "when": "$(basename).ts"},
        "**/*.js.map": true
    }
}

Article Link:

https://alili.tech/en/archive/b36fefc7/

# Latest Articles