排除特定路径上的文件

时间:2016-11-25 09:24:54

标签: visual-studio-code

我想在特定路径上排除文件(例如fe / dist),但它不起作用。

"files.exclude": {
  "**/dist": true,  // working, but exclude all dist folders (don't want)

  "fe/dist"         // not working
  "/fe/dist"        // not working
  "**/fe/dist"       // not working
  "./fe/dist"       // not working
  "${workspaceRoot}/fe/dist": true,         // not working
}

任何想法?

1 个答案:

答案 0 :(得分:0)

要仅排除特定的嵌套文件夹(例如fe / dist),请尝试

"files.exclude": {
     "**fe/dist": true
}