简体   繁体   中英

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:

在此处输入图片说明

With the following files structure:

在此处输入图片说明

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

However, if I change the file structure this way

在此处输入图片说明

The javascript files are not hidden

Anyone can help?

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

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

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
    }
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM