Hide .js.map files in Visual Studio Code

后端 未结 12 2164
生来不讨喜
生来不讨喜 2020-11-30 16:19

I am working on a typescript project in Visual Studio code and would like to hide the .js.map (and maybe even the .js) files from appearing in the

12条回答
  •  孤独总比滥情好
    2020-11-30 16:58

    Please add the following lines in "User Settings" panel in order to override "Default Settings". You can hide files {basename}.js and {basename}.js.map when you create file as {basename}.ts.

    "files.exclude": {
            "**/*.js": {
                "when": "$(basename).ts"
            },
            "**/*.js.map": {
                "when": "$(basename)"
            }        
        }
    

提交回复
热议问题