visual code - excluding files with several conditions

前端 未结 2 1136
我在风中等你
我在风中等你 2021-01-13 06:28

There is an option to exclude generated files with the \"when\" keyword, .e.g:

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


        
2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-13 07:21

    Try this:

    "**/*.js": { "when": "$(basename).ts"},
    "**/*?.js": { "when": "$(basename).tsx"}
    

    Source: Microsoft/vscode#1214

提交回复
热议问题