“search.exclude” 在 VSCode 中不起作用。

huangapple go评论61阅读模式
英文:

"search.exclude" is not working in VSCode

问题

I get it there are special cases but I cannot exclude my folder from search in VSCode no matter what I do!

I have this in my settings.json

"search.exclude": {
    "node_modules": true,
    "saving/client/hls/**/*.*": true
}

and yet I see the results from saving/client/hls/ folder.

英文:

I get it there are special cases but I cannot exclude my folder from search in VSCode no matter what I do!

I have this in my settings.json

"search.exclude": {
    "node_modules": true,
    "saving/client/hls/**/*.*": true
}

and yet I see the results from saving/client/hls/ folder.

答案1

得分: 1

问题很可能涉及到您使用的通配符。

忽略该目录下所有文件的正确方法如下:

"saving/client/hls/**/*": true
英文:

The problem here most likely involves the wildcard that you used.

The correct way to ignore all files under that directory is this

"saving/client/hls/**/*": true

huangapple
  • 本文由 发表于 2023年3月4日 08:36:20
  • 转载请务必保留本文链接:https://go.coder-hub.com/75632940.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定