Dawid Dyrcz
Dawid Dyrcz

Reputation: 365

VS Code - unable to hide javascript files generated from typescript files

I would like to hide the javascript files generated from the typescript files

This works perfectly:

enter image description here

With the following files structure:

enter image description here

(I have removed the exclude js files settings to show the structure)

However, if I change the file structure this way

enter image description here

The javascript files are not hidden

Anyone can help?

Upvotes: 1

Views: 718

Answers (2)

nivas
nivas

Reputation: 3186

Why don't you try this, Open your workspace settings file (.vscode/settings.json):
This will hide js files in every folder and it works even if you rename your dist folder to something else in future.

{
    "files.exclude": {
        "**/*.js": true,
        "**/*.map": true
    }
}

Upvotes: 1

unional
unional

Reputation: 15589

You can hide the dist folder. Better yet, I just exclude them from search:

// .vscode/settings.json
{
  "search.exclude": {
    "dist": true
  }
}

Upvotes: 1

Related Questions