Hide .js.map files in Visual Studio Code

后端 未结 12 2161
生来不讨喜
生来不讨喜 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:48

    Maybe it's better to hide .map and .js files when they match their corresponding .ts file.
    You can do that by copying the following lines in VS User Settings (Preferences > User Settings):

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

提交回复
热议问题