Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hiding .js and .map files in VS Code while

What kind of settings can I use in Visual Studio Code to hide certain .js and .map files ?

enter image description here

like image 939
runtimeZero Avatar asked Nov 28 '22 05:11

runtimeZero


1 Answers

You probably don't want to blindly hide all .js and .map files, only the ones that are generated from an associated .ts file like you show in your screenshot.

To conditionally hide them, you're going to want to do this instead:

{
  "files.exclude": {
    "**/.git": true,
    "**/.DS_Store": true,
    "**/*.js.map": true,
    "**/*.js": {"when": "$(basename).ts"}
  }
}
like image 141
Jess Chadwick Avatar answered Feb 15 '23 23:02

Jess Chadwick